Difference between revisions of "MC-Basic:PROGRAMPASSWORD$"
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:PROGRAMPASSWORD$}} | ||
+ | |||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 7: | Line 9: | ||
|AVAILABILITY= | |AVAILABILITY= | ||
− | Version 4.5.3 | + | Since Version 4.5.3 |
|DESCRIPTION= | |DESCRIPTION= | ||
Line 43: | Line 45: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[MC-Basic:PROGRAMPASSWORD|PROGRAMPASSWORD]] |
− | * [[ | + | * [[MC-Basic:PROGRAM ... END PROGRAM|PROGRAM ... END PROGRAM]] |
− | * [[ | + | * [[MC-Basic:PROGRAMNAME|PROGRAMNAME]] |
+ | * [[MC-Basic:task.PASSWORDPROTECTED|task.PASSWORDPROTECTED]] | ||
+ | |||
− | [[Category | + | [[Category:MC-Basic:File Management|PROGRAMPASSWORD$]] |
}} | }} |
Latest revision as of 09:28, 10 April 2017
Language: | English • 中文(简体) |
---|
This command is used to set the file password and to toggle the password protection state. Password protection enables protection at the level of the file system, and is used to prevent an end user of the system from deleting or retrieving a file. Password protection is available for each file individually. By entering a password, the protected state is enabled. The state can be returned to the unprotected state by again entering the password. Any password entered while in the unprotected state returns the file to the protected state, with the password being the string that was just entered. A password can be changed by following this procedure. The password protection mechanism does not affect the ability to load and run the task.
Short form
PPAS$
Syntax
ProgramPassword File = <filename string> Password = <password string>
Availability
Since Version 4.5.3
Type
<filename string>: A string including file specification, including file name and extension.
<password string>: String
Range
A maximum of 10 characters.
Default
By default, files are not protected.
Scope
Configuration or Terminal
Limitations
The password must begin with a letter, and thereafter may consist of alphanumeric characters and the underscore character.
Examples
ProgramPassword$ File = “MyFile.prg” Password = “abc_def”
Or
Common shared Fname as string = “MyFile.prg”
Dim shred Pword as string = “abc_def”
PPas$ File = Fname Password = Pword