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 for Programming
 LabTalk Forum
 Break and Combine Statements in Code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

AKazak

Russia
1205 Posts

Posted - 02/17/2021 :  07:19:43 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cpyang

USA
1406 Posts

Posted - 02/17/2021 :  08:51:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

YimingChen

1666 Posts

Posted - 02/17/2021 :  08:53:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
See this impasc X-function example
https://www.originlab.com/doc/LabTalk/guide/Importing-Data#Import_ASCII_Data_with_Options_Specified

James
Go to Top of Page

AKazak

Russia
1205 Posts

Posted - 02/17/2021 :  10:49:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Got it!
Very cool.
Thank you.


---
Andrey
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