 |
THE HYPERCARD CENTER |
|
|
Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
userLevelset [the] userLevel to posInteger
where posInteger is 1, 2, 3, 4, or 5. The userLevel property returns or sets the user level as follows: 1 = Browsing 2 = Typing 3 = Painting 4 = Authoring 5 = Scripting
HyperCard determines the default setting for userLevel from the Preferences card of the Home stack at startup and when HyperCard resumes after being suspended. Examplesset the userLevel to 5 if the userLevel < 4 then ... -- Save and restore the user level: put the userLevel into savedUserLevel set the userLevel to 5 ... -- do stuff here set the userLevel to savedUserLevel
Demo Scripton whatUserLevel answer "The current user level is:" && the userLevel end whatUserLevel
Related Topics Placeholders
posIntegerAn expression that evaluates to a positive integer. For example: 3 67 mod 13 the number of bg fields the number of backgrounds the number of cards div 2
See also: background , bkgnd , button , card , chunk , field , menu , and menuItem
HyperTalk Reference
|