Inserting new lines in a Scrolling List Field programatically

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sun Jan 29 05:04:07 EST 2006


Hi Scott,

Rev provides many ways to achieve this.
Have a look at all these prepositions: into, after, before.
Combine with line, field, char, etc.
Use carriage returns too :-)

For instance to add a new line at the current end of a field:

put cr & "29/01/2006" && Tab && "Full Shed" && Tab && "12"  && Tab &&  
"FullShed" after fld "fldShed"
But you could write also:
put "29/01/2006" && Tab && "Full Shed" && Tab && "12"  && Tab &&  
"FullShed" into line (the number of lines of fld "fldShed" + 1) of  
fld "fldShed"
Just for understanding ;-)

Le 29 janv. 06 à 10:46, Scott Kane a écrit :

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

Best Regards from Paris,
Eric Chatonet
------------------------------------------------------------------------ 
----------------------
http://www.sosmartsoftware.com/    eric.chatonet at sosmartsoftware.com/





More information about the use-livecode mailing list