Origin 5.0 Child Window namesThe 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;
}