Introduction | Language Structure | IB Statements | File System | Comet 32 Runtime | Index |
| Syntax: | SetGlobal (1, format-statement-label) [,EXCP=statement-label] |
| Discussion: |
The SetGlobal statement can be used to store up to 8000 bytes of data, such as user identification information, in memory. The syntax is similar
to an I/O statement using a format to define the layout of the data:
SetGlobal (1,UserInfo) [,EXCP=9000] UserInfo is a FORMAT statement with a variable list. The first parameter, the 1, indicates that this is user information. We have reserved 0 in its place for system information. In the future, we may use this to return PSTAT-like information and only GetGlobal will be allowed (you may not "set" this information). For now, the only valid value for that first parameter is 1. Possible exception generated by the call is:
E47 if the first parameter is invalid See also GetGlobal |
| Example: |
UserInfo: FORMAT Name$;Group$;Privileges$ . . Name$ = "MyUserName" Group$ = "Everyone" Privileges$ = "all" SetGlobal (1,UserInfo), EXCP=9999 . . 9999 ... |