9.0
140
letter-letter alphabetically before the second letter. Variable names that begin with a
letter in this range default to declared type.
If a variable name be
g
ins with a letter not s
p
ecific in an
y
letterran
g
e then the
variable is a Variant. The letterranges are not allowed to overlap.
See Also: Option.
Example
DefInt A,C-W,Y' integer
DefBool B ' boolean
DefStr X ' string
' all others are variant
C:\ABCTemp\vbs\Sub_Definition.htm
Sub
Main
B = 1 ' B is an boolean
Debug
.Print B ' True
X = "A" ' X is a string
Debug.Print X '"A"
Z = 1 ' Z is a variant (anything)
Debug
.Print Z ' 1
Z = "Z"
Debug
.Print Z '"Z"
End
Sub
DeleteSetting Instruction
Syntax
DeleteSetting AppName$, Section$[, Key$]
Group
Settings
Description
Delete the settings for Key in Section in project AppName. Win16 and Win32s store settings in a .ini file named
AppName
. Win32 stores settings in the registration database.
Parameter Description
AppName$ This string value is the name of the project which has this Section and Key.
Section$ This string value is the name of the section of the project settings.
Key$ This strin
g
value is the name of the ke
y
in the section of the
p
ro
j
ect settin
g
s. If this
is omitted then delete the entire section.
Example
Sub Main
SaveSetting
"MyApp","Font","Size",10
DeleteSetting "MyApp","Font","Size"
End
Sub










