Dynamically Building an Option list
Stephen Barncard
stephenREVOLUTION at barncard.com
Thu Jul 5 16:35:29 EDT 2007
>I wish I could recall my question!... was trying
>
> put zzz into the text of button "zzzz"
>
>but it is much simpler...
>
>here's breadboard example...
>
>
>
>ON mouseUp
>
> put empty into userList
(not needed)
>
> open file "D:\users.txt" for read
>
> read from file "D:\users.txt" until EOF
>
> put it into userList
>
> close file "D:\users.txt"
>
> ----xxxxxxxx----put userList into button "Users"
set the text of button "Users" to userList
(assuming that userlist is a return delimited list)
>
>END mouseUp
>
>
much simpler to do in one line
set the text of btn "userList" to URL "file:C:\path\to\my\file\USERLIST.txt"
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list