9.0

238
SetAttr "XXX",Attrib
End
Sub
Sgn Function
Syntax
Sgn(Num)
Group
Math
Description
Return the sign.
Parameter Description
Num Return the sign of this numeric value. Return -1 for negative. Return 0 for zero.
Return 1 for positive.
Example
Sub Main
Debug
.Print Sgn(9) ' 1
Debug
.Print Sgn(0) ' 0
Debug
.Print Sgn(-9) '-1
End
Sub
Shell Function
Syntax
Shell(Name$[, WindowType])
Group
Miscellaneous
Description
Execute program Name$. This is the same as using File|Run from the Program Manager. This instruction can
run .COM, .EXE, .BAT and .PIF files. If successful, return the task ID.
Parameter Description
Name$ This string value is the path and name of the program to run. Command line
ar
g
uments follow the
p
ro
g
ram name.
(
A lon
g
file name containin
g
a s
p
ace must be
surrounded by literal double quotes.)
WindowType This controls how the application's main window is shown. See the table below.
WindowType Value Effect
vbHide 0 Hide Window
vbNormalFocus 1, 5, 9 Normal Window