The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 List of reserved variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tom Blanpied

Durham, NC, US
1 Posts

Posted - 08/13/1998 :  12:08:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello all. I am looking for a list of all reserved or illegal variable names
for Labtalk. A colleague (who shall remain nameless) wrote a simple script
that contained the variables z0 and z1, since he did not realize that z1 was
reserved for something else. The Labtalk manual describes some system
variables, but z1 and z2 are not listed, prompting me to wonder if there are
more that might cause problems in the future.

On a related note, I have to admit that at times I enjoy the agony of
debugging my own code, but are there any plans for providing more
sophisticated debugging procedures for Labtalk?

Tom

Joe Przechocki

USA
6 Posts

Posted - 08/13/1998 :  12:10:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Additional System and Reserved Varialbes

In addition to the System Variables listed in section 2.9 of the LabTalk manual,
the following System and Reserved variables should be avoided in user-defined
scripts.

System Variables
----------------------------
i,j,k
x,y,z,t
X1,X2,X3,X4
Y1,Y2,Y3,Y4
Z1,X2,Z3,Z4
V0,V1,V2,V3,etc.

Operation Variables
----------------------------
xx,yy,zz,tt
ii,jj,kk
temp,e,tiny
beg,begin,start,startRow,
end,endRow,endRows,numRows

Notes:
----------------------------
'System Variables' have a specific meaning in Origin;
for example, X1, X2 define the endpoints of the x-axis.

'Operation Variables' are variables which are used in scripts called
by Origin during various operations. User-defined scripts may also use
these variables, but there is no guarentee that the variable will remain
un-changed if an Origin operation is performed (like Fit:Linear).

Joe

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000