how to use os class

how to use os class

Hi,

I was wondering how to use the OS class. (especailly the system) function.

It's documented in the Help, but I don't know how to actually call the methods.

I tried creating a new "os", but it can't find it.

Code:
var myOs = new os();

I also tried to just to do stuff like

Code:
os.beep();

but again, it doesn't know what OS is.

Update:

I just realized that I have to use capital "OS". :D this is where sample code is handy.
 
Last edited:
Hi,

I was wondering how to use the OS class. (especailly the system) function.

It's documented in the Help, but I don't know how to actually call the methods.

I tried creating a new "os", but it can't find it.

Code:
var myOs = new os();

I also tried to just to do stuff like

Code:
os.beep();

but again, it doesn't know what OS is.

Update:

I just realized that I have to use capital "OS". :D this is where sample code is handy.

Yes, Cheetah is case sensitive. Many (most/all) classes are either all capital or start with capital letters.
 
Back
Top