HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Number of Letters in a string variable

06-30-2004, 04:30 AM#1
Matrix141
Is it possible to find the max number of letters in a string? or more specifically i need to do this:

Substring(**any string variable**), 1, (the third last letter of the string)

I need to find the number of the LAST letter in the string and then subtract 3 off of that. This also needs to work for a bunch of variables of different sizes (approxiamtely 500).

Thanx

Matrix141
06-30-2004, 08:13 AM#2
GaDDeN
HMm i would need to check the editor, but i dont have time now sorry. Ill try to help in an hour if nobody else replies!
06-30-2004, 08:16 AM#3
Xinlitik
See the pic...
06-30-2004, 09:07 AM#4
GaDDeN
Riight thats correct so nvm
06-30-2004, 12:55 PM#5
Matrix141
Is that UMSWE 4.1? cuz im using 4.0 and i dont have that feature...
06-30-2004, 06:55 PM#6
Xinlitik
It's not a UMSWE add-on. It is located in the integer menu, which can be found, for example, by clicking the "1" on create units at loc.
06-30-2004, 09:26 PM#7
Matrix141
Yeah its not a UMSWE add-in but it isnt available in 4.0. I just opened 4.1 and it's there so its good. Thanx alot man much appreciated!
07-01-2004, 02:01 PM#8
Cubasis
Yeah, you have to remember to get a new version of UMSWE when blizzard release patches. As UMSWE have to import the features Blizzard adds.

~Cubasis