finds an integer encoded in ascii out of a string. Leading spaces/tabs
etc. will be skipped, and also hexadecimal numbers (1234567890ABCDEFabcdef)
and binary numbers (01) may be read this way if they are preceded by a
"$" or a "%" sign respectively. A minus "-" may indicate a negative integer.
Val()() returns the number of characters read in the second argument, which
must be given by reference (If "read" returns 0 (value will be 0 too) then the string did not contain an
integer, or the value was too sizy to fit in 32bit. "read" may be NIL.
examples of strings that would be parsed correctly:
'-12345', '%10101010', ' -$ABcd12'
these would return both as "value" and in read a 0:
StrCmp(), StrCopy(), StrAdd(), EstrLen(), StrMax(), StringF(),
RightStr(), MidStr(), InStr(), TrimStr(), UpperStr(), LowerStr(),
ReadStr(), SetStr(), AstrCopy(), OstrCmp(), StrLen()