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
 object.addtext method

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
asp Posted - 05/02/2003 : 12:50:01 PM
%B="aaa\bbb";
text.addtext (B);

does not add anything after "\".
Any help?
4   L A T E S T    R E P L I E S    (Newest First)
rdremov Posted - 05/05/2003 : 1:00:38 PM
The best method to work with path in Origin7 is to use VERBATIM property.
text.verbatim = 1;
text.text$ = "c:\mypath\";

Verbatim property will ignore all escapes (similar to \v(...) escape) and treat the text as is without any additionals like escape itself.
This will ensure that path is ok both when displayed or accessed.

Thanks,
Roman.
Mike Buess Posted - 05/02/2003 : 4:23:03 PM
This will work...

%B=fdlog.path$;
%B=\v(%B);
text.addText(B);

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 05/02/2003 4:23:43 PM
asp Posted - 05/02/2003 : 1:57:24 PM
Sorry, my quwstion was not quite correct.
I am trying to put file's pathway into the text object. Something like
%B=FDLOG.path$; where FDLOG.path$ is "C:\AAA\BBB..."
text.addtext (B);
In this case only "C" is printed.
Mike Buess Posted - 05/02/2003 : 1:49:09 PM
Hi,

\b is probably being interpreted as an escape sequence. Try this...

%B="aaa\\bbb"; // ie, use "\\" instead of "\"
text.addtext(B);

Mike Buess
Origin WebRing Member

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