as title, text1 > text ,the Quad1 need to move left , when i compare 12 and 14 the script is working
But when i compare 10and 5 , the script is not working,what wrong with my Script THX
string.compare is doing an alphabetic sort.
10 is less than 5 when sorted alphabetically (not numerically).
It seems like you actually want to compare the values as numbers, not just as a string.
Brian,thx for respondSo,if i want to use number compare, how can i do with script
Something like:CInt(text1.text) < CInt(text.text)
Or you could use CDbl(text.text) instead if expecting floating point values.
Brain,apperciate i got it
62 Auriga DriveNepean, OntarioCanada, K2E 7W6
Phone+1 613 228-0688Emailcommunity@rossvideo.com
LoginJoinHelp/FAQEventsrossvideo.com
Terms and ConditionsPrivacy PolicyDMCA Policy