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 |