var, chrs = Val(string$)
Starting with Hollywood 2.0 you can also pass a string which contains a
binary number to this function now. Simply prefix it with a '%' character.
Additionally, a second value is returned now which specifies how many
characters Val()
has read from the string. This allows you to determine
the length of the number.
result, chrs = Val("500 people were on the train.") Print(result, "-", chrs)This will print "500-3" to the screen.