Inserting new lines in a Scrolling List Field programatically
MisterX
b.xavier at internet.lu
Sun Jan 29 05:13:59 EST 2006
try instead to
put it & cr before fld x
or
put cr & it after fld x
depends how you want to manage blank lines in your field later...
if fld x is not empty then put cr after it
put it before fld x
or again...
put fld x & cr & it into fld x -- but I would avoid this...
but if you are doing loops it's better and faster to
put fld x into thislist
repeat for each line thisline of thisotherlist
if thisline is not among the lines of thislist then
put thisline & CR after thislist
end if
end repeat
delete last char of thislist
...
just an example 103...
cheers
Xavier
http://monsieurx.com/rev
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Scott Kane
> Sent: Sunday, 29 January, 2006 10:47
> To: 'How to use Revolution'
> Subject: Inserting new lines in a Scrolling List Field programatically
>
> 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...
>
> Scott
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list