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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Delayed excecution

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AKazak Posted - 02/17/2021 : 2:46:43 PM
OriginPro 2021b (64-bit) Beta 5 9.8.5.105
Windows 7 Pro x64 SP1

Greetings!

https://www.originlab.com/doc/LabTalk/guide/Using-Semicolons-in-LT tells about leading semicolon for delayed execution.

Can you elaborate on this, please?
How does it work and what is the size of the delay before execution?

Thank you.

---
Andrey
2   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 02/18/2021 : 02:06:02 AM
quote:
Originally posted by cpyang

The simplest example of this is the following:
1. you have a text label called "code" which has LT script
2. based on condition, your script will need to delete this label
3. deleting itself will crash, so in that case you put the label delete code with a delayed execution.

Basically Origin will put all delayed execution script into a separate buffer and use the window messaging system to trigger the execution when the system is not busy doing some window thing. The length of this delay is unpredictable but typically very short.

CP




Does this mean, that the delay itself is not a fixed time, but a condition to wait until the object is free and safe to manipulation?

I cannot imagine a rationale for the text label to delete itself.
Can you share a test project, please?

---
Andrey
cpyang Posted - 02/17/2021 : 7:00:24 PM
The simplest example of this is the following:
1. you have a text label called "code" which has LT script
2. based on condition, your script will need to delete this label
3. deleting itself will crash, so in that case you put the label delete code with a delayed execution.

Basically Origin will put all delayed execution script into a separate buffer and use the window messaging system to trigger the execution when the system is not busy doing some window thing. The length of this delay is unpredictable but typically very short.

CP

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000