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
 Origin Forum
 Origin 5.0 bugs ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/20/1998 :  3:42:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
In the manual, it's wrote that's origin support a dot in a name
of a window (it's work correctly with origin 4.1)
but it doesn't work with origin 5.0.
If you rename a worksheet (data1 to data.01), origin create
data01 in place of data.01.
It's a little embarassent for us because we have a huge
Labtalk script initialy wrote for 4.1 and we have to make
correction.

Does anyone know about ?

Thanks a lot in advance !

Levent

a_user

USA
0 Posts

Posted - 08/20/1998 :  3:46:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin 5.0 Child Window names

The Origin 5.0 Manual is not correct. While Origin 5.0 can open and retain (in some cases) Child Window names with dots (periods) from older versions, it was decided to re-write the naming routines such that all unsupported characters would be stripped out. This was done to ease the coding for the LabTalk interpreter which makes heavy use of Object.Property notation.
You will need to modify your LabTalk script to handle this. Here is a macro that will strip periods from a string:

def StripDots {
%Z=%1;
done=0;
for( ;done==0; ) {
%A=%[%Z,'.'];
%B=%[%Z,>'.'];
%Z=%A%B;
if(%[%B]==0) done=1;
}
}

and here is a script that uses this macro to remove periods from the names of all non-minimized windows:

doc -e o {
stripdots %H;
win -r %H %Z;
}

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