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!).

Maybe I am not understanding what you want but with my example you don't need to worry about CR terminations. Example 1 starts with an empty custom prop but properly puts "This is line 1" into the list on line 1 (number of lines of tTemp returns when the list is empty). Example 2 doesn't have a CR at the end of line 3 but properly puts "This is line 4" on line 4.


Am I missing something.

No, you are right, when I looked at the sample I had using this approach it actually worked! I must have been looking at the wrong thing or something. This seems by far the best approach.


Thanks for your help.

All the Best
Dave
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to