Statements/Commands

EzCom2Web statements are composed by a name and a list of parameters enclosed in round brackets and delimited with comma. Some statements returns something (they are functions), like this:
myports=enumports ()
Others just perform an action (they are procedures), like this:
openport ("COM3",9600,8,"None",1)

Passing parameters to statements
Parameters can be constants or variables.
String constants must be always enclosed in double quota ".
This statement is not correct:
openport (COM3,9600,8,None,1,None) This is correct:
openport ("COM3",9600,8,"None",1,"None")
And also these:
port="COM3"
baud=9600
openport (port,baud,8,"None",1)

Statements/commands are called "functions" in this reference, regardless they are returning or not a value.


Generated on Wed Dec 3 10:18:42 2003 for Easy Control