This is because the last value is converted to a number and then compared against a empty string. A simply solution to that is to add a trailing extra coma at the end of the list "411111, 411112, 411113, 411114," to the list : Hi, : I get a Type Mismatch error using the : following code: ------------------------- : IsEqual( bins, "", done ) : LoopUntil( done, ENDLOOP ) : GetToken( ",", bins, global.bin ) : messagebox global.bin : messagebox bins : IsEqual( bins, "", done ) : ENDLOOP: ------------------------- : bins is a string which contains: "411111, 411112, 411113, 411114" : The IsEqual function fails on the last round : of the loop when bins contains "411114". : Does anyone know why? : Thanks in advance : Sotiris
|