Can somebody see what is missing in the snippet below?
Have use IsNumeric(InitCount) to test that it is reading a a numeric value not a string value but the conditional in the if statement is never met.
Thanks, Danzig
Code:
InitLine = "17, some_text_string"
InitArray = Split(InitLine,Chr(44)&Chr(32))
InitCount = InitArray(0)
For ForIdx = 1 to 100
Idx=Idx+1
WScript.Echo "Idx = "&Idx&", InitCount = "&InitCount&"."
If Idx >InitCount Then
WScript.Echo "Idx >InitCount"
End If
Next
Have use IsNumeric(InitCount) to test that it is reading a a numeric value not a string value but the conditional in the if statement is never met.
Thanks, Danzig