Val

Returns a number representation of the specified string.

Parameters:

StringStr  -  String of characters to convert.

Returns:

A number representing the specified string.

Remarks:

The Val function can be used to convert variable formats.

Example:

Set Host = CreateObject( "BZWhll.WhllObj" )

 

Host.Connect "A"

Host.ReadScreen ResultStr, 2, 7, 15

x = Val(ResultStr) / 2

ResultStr = Host.Str( x )

Host.WriteScreen ResultStr, 7, 15