Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Current Focus
#10
For numbers, always use variables of type int or other numeric types. For text, use variables of type str. To convert a string, that begins with a number, to number, use function val. Conversion number-to-string is automatic.

str s="5 cows"
int i=val(s) ;;now i is 5
s=i ;;now s is "5"

Code:
Copy      Help
str s; int vCounter
GetListViewItemText(hlv -1 s 2 2)
vCounter=val(s)
if vCounter<5
,mes "5 or less"
else
,mes "5 or more"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)