How to create a pop-up menu from a list of files in a folder?

Malte Brill malte.brill at t-online.de
Sun Aug 3 06:54:00 EDT 2003


Hello François,

Assuming your user folder is in the same folder as your main stack you might
try this:

on opencard --or whereever you like
  put the directory into restoreDefault
  get the effective filename of this stack
  set the itemdel to "/"
  put "users" into the last item of it
  set the directory to it
  put the files into myvar
  set the text of btn "yourPopUp" to myvar
  set the directory to restoredefault
end opencard

Hope this helps,

Malte




More information about the use-livecode mailing list