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
 ; or ;;
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

contac

Chile
8 Posts

Posted - 02/25/2002 :  11:50:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Whats the difference of
delete Myvar;
and
delete Myvar;;

Mike Buess

USA
3037 Posts

Posted - 02/27/2002 :  3:36:52 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I'm not sure if this will help, but it might have something to do with this KB article.

Mike Buess
Origin WebRing Member
Go to Top of Page

CStorey

Canada
137 Posts

Posted - 02/27/2002 :  5:55:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think the difference is that the LabTalk interpretor looks at everything upto or between a set of ";" as a command. So a blank line gets interpretted, but nothing happens. (Except a time penalty for the interpretter to figure out that it's not supposed to do anything.)

So...

delete MyVar; is 1 command to interpret
delete MyVar; is 2 commands to interpret - Delete and do nothing.

Mike, I think the kbase article is using the leading ";" as time delay to allow the window to be completely drawn before any real commands get executed.
However, this is all speculation.

Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
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