Library /sys$common/syshlp/basichelp.hlb Graphics, SET Statements, INITIAL_STRING *Conan The Librarian (sorry for the slow response - running on an old VAX) |
The SET INITIAL STRING statement allows you to specify an initial string expression that is presented to a user when string input is requested. A user can accept the initial string or enter another string. VAX BASIC concatenates the user-supplied string to the initial string. Example PROGRAM select_an_item DECLARE STRING users_string SET STRING ECHO AREA 240,767,0,240 SET INITIAL STRING "Enter YES or NO" LOCATE STRING users_string IF RIGHT$(users_string,17) = "YES" THEN DRAW Main_menu ELSE EXIT PROGRAM END IF
Additional Information (explode) :
|