On Apr 21, 2004, at 8:57 AM, David Burgun wrote:
I realize this is partly about documentation and I haven't read through the whole thread, but I think a simple way around all of this is to use the following code:
put "my New Line" into line (number of lines of myList + 1) of myList
This has worked well for me.
I don't think it will work in the case of the Custom Properties though, since it returns a list like so:
Sure it does.
Try this.
Set the myCustomProp of this stack to "" put the myCustomProp of this stack into tTemp put "This is line 1" into line (number of lines of tTemp + 1) of tTemp set the myCustomProp of this stack to tTemp
OR
Set the myCustomProp of this stack to "line 1"&cr&"line2"&cr&"line3" put the myCustomProp of this stack into tTemp put "This is line 4" into line (number of lines of tTemp + 1) of tTemp set the myCustomProp of this stack to tTemp
This is basically what I was saying, the problem is that there if there is just one entry in the Custom Properties, then it isn't always terminated with a CR. So, doing
put "This is line 1" into line (number of lines of tTemp + 1) of tTemp
would result on the line being appended to the last LINE not to the container. Also from reading Klaus's posts, he seems to think that you are to put the CR at the START of a line, means that if the container is empty, you need to do a test for that and NOT prepend a return in this case!
I am guessing that the problems I was having yesterday is because I entered some custom props in the IDE which by the looks of it, doesn't add a CR to the last item in the list. As long as everything is TERMINATED with a CR, then your code will work ok (and so will mine!).
All the Best Dave
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
