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
 Assign empty strings
 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 - 07/22/2021 :  11:09:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 2021b (64-bit) SR2 9.8.5.212
Windows 10 21H1 x6

Greetings!

The code below doesn't work if x.comments$ is empty:
DestinationXColumn[C]$ = SourceMatrixSheet.x.comments$;


while the following works fine:
DestinationXColumn[C]$ = "" + SourceMatrixSheet.x.comments$;


Why is that?
What is the normal practice in LT to do the similar assignments?

Thank you.

---
Andrey

Edited by - AKazak on 07/22/2021 11:09:31 AM

cpyang

USA
1406 Posts

Posted - 07/22/2021 :  7:29:19 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Need to see how did you construct SourceMatrixSheet, I tried this and did not see a problem.

range cc = [book1]1!col(C);
range mm = [mbook1]1!;
mm.x.comments$="";
cc[C]$=mm.x.comments$;


CP
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