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
 Substition doesn't work in objects/methods.

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
St-Ranger Posted - 03/20/2003 : 12:45:36 PM
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!
1   L A T E S T    R E P L I E S    (Newest First)
marko Posted - 03/25/2003 : 04:24:22 AM
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


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