Archive of UserLand's first discussion group, started October 5, 1998.

Re: numbered objects

Author:Oliver Wrede
Posted:5/31/1999; 7:13:12 AM
Topic:numbered objects
Msg #:6894 (In response to 6852)
Prev/Next:6893 / 6895

You can use square brackets to have tables like yours. For instance: new (tabletype, @workspace.["1.a.3.c.5.e"])

I actually wanted to have a subtables for each dot-delimited item! Your suggestion will create one table, but it should create a six-level hierarchy.

I now found this solution for it:

objectName="1.a.3.c.5.e";
objectName="[\""+string.ReplaceAll(objectName,".",""].["")+"\"]";
table.surePath(objectName);
new(tableType,address(objectName));

I can go with this for a while. The problem for me is, that I may have dots in the names, which should not create a sublevel! But this has to be solved elsewhere....

Oliver




This page was archived on 6/13/2001; 4:50:32 PM.

© Copyright 1998-2001 UserLand Software, Inc.