What is the best way to test if a string is convertible to a LONG?
Something like this? Or is there a better way?
Something like this? Or is there a better way?
Code:
LOCAL x AS LONG LOCAL s AS STRING s = "Not Happening" ON ERROR RESUME NEXT x = CLNG(s) IF ERR THEN PRINT "Not Convertible!" ELSE PRINT "Convertible" END IF
Comment