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
 mat.profile.hxcol
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 04/17/2013 :  08:15:05 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 9.0 and Service Release SR1
Operating System: XP

statements like:
mat.profile.hxcol = Data1_a;
for an existing worksheet Data1 with column A
results in the error message:
"assignment type mismatch, check declared type of
LHS and result from RHS"

However, the assignment works!
What's wrong?

Thanks for every hint?

Stefan

greg

USA
1378 Posts

Posted - 04/18/2013 :  4:36:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Since the default value for mat.profile.hxcol is 1, possibly you only think it has worked.
Try this:
// BEGIN SCRIPT
mat.profile.hxcol =;
mat.profile.hxcol = data1_B;
mat.profile.hxcol =;
// END SCRIPT
Note that you will have to execute the third line separately since attempting to run all three will produce Command Error on line 2.
You will see that the value has not been changed.

Use this:
mat.profile.hxcol = colnum(data1_a);
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