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
 Break and Combine Statements in Code

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 : 07:19:43 AM
OriginPro 2021b (64-bit) Beta 5 9.8.5.105
Windows 7 Pro x64 SP1

Greetings!

Some X-functions require many parameters and I want to improve the code readability by separating the parameter list into several lines.
How do we achieve this in the current LT syntax?
A nice example is: https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/how-to-break-and-combine-statements-in-code

So far I have found https://www.originlab.com/doc/LabTalk/guide/Extending-a-stmt-over-Multiple-Lines, but it is related to macros.

Thank you.

---
Andrey
3   L A T E S T    R E P L I E S    (Newest First)
AKazak Posted - 02/17/2021 : 10:49:10 AM
Got it!
Very cool.
Thank you.


---
Andrey
YimingChen Posted - 02/17/2021 : 08:53:46 AM
See this impasc X-function example
https://www.originlab.com/doc/LabTalk/guide/Importing-Data#Import_ASCII_Data_with_Options_Specified

James
cpyang Posted - 02/17/2021 : 08:51:13 AM
Labtalk has no line break concept, so you can put your code into as many lines as you want, as only the ";" will terminate it, like

ty "this
is a test
of multiple
lines";



CP

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