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
 Substition doesn't work in objects/methods.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

St-Ranger

USA
17 Posts

Posted - 03/20/2003 :  12:45:36 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In Origin 6.0p4:
TEMP_T is defined {10,20,40, ..}, and all the indicies are set in a loop.
Construction like this works:
window -ti wks "%S" FC$(TEMP_T[si])K;

However,
FC$(TEMP_T[si])K!wks.paste(A,1,rii);

doesn't work.
( Just in case: "FC$(TEMP_T[si])K"!wks.paste(A,1,rii) doesn't
work either)
At the same time this works alright:
%B="FC$(TEMP_T[si])K";

%B!wks.paste(A,1,rii);

Any idea why ???
Am I missing something, or this is by design ?

Thanks!

marko

Germany
112 Posts

Posted - 03/25/2003 :  04:24:22 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Don't worry, such things happen very often with Origin! Many things work, many things don't, though they should. Labtalk has so many quircks that it's always up to you to find out whether this or that will run under certain circumstances. Sometimes it does, sometimes it doesn't. Nobody can tell why, I'm afraid. You just have to play around and find a working approach for you.

It's always a good idea to use string variables in such cases as you show in the end! That decreases the number of desasters dramatically! :)

Take care, don't trust Origin too much, do always checks!!!

Regards,
Marko

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