Inserting new lines in a Scrolling List Field programatically
Klaus Major
klaus at major-k.de
Sun Jan 29 06:22:35 EST 2006
Hi Scott,
> Hi,
>
> Dumb question number 103...
>
> I have a Scrolling List Field that I need to update
> programmatically. The code to populate the line is
>
> put "29/01/2006" && Tab && "Full Shed" && Tab && "12" && Tab &&
> "Full
> Shed" into fld "fldShed"
>
> This works fine, except of course, it overwrites the current
> line with new data. I tried adding a return to the end
> of the line above, but that doesn't seem to do it. Note
> that I will not know how many lines there will be at runtime.
>
> Thanks in advance...
Do this:
...
put "29/01/2006" && Tab && "Full Shed" && Tab && "12" && Tab &&
"FullShed" into temp_var
if fld "fldShed" <> empty then
put CR before temp_var
end if
put temp_var AFTER fld "fldShed"
...
Just another smart Rev solution for a problem :-)
> Scott
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list