I created a vary basic application that selects a directory and tells me how many files are in the directory. When I open the program, it keeps the values (directory selected and total files) when the application was last run. How does this happen? I thought values (text boxes and variables) are cleared each time I open the program? Is there a way to clear the values when the program is open without initializing each field?
Also...when I use the command:
put the files into tAllFiles
Will this include hidden files if I have "show hidden files" selected on a folder? Is there anyway to not select hidden files if I have "show hidden files" selected?
Warren
Initializing Text Fields
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10049
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
It isn't possible for a standalone to save itself, so perhaps those values are from the last time you ran the stack in the IDE?
As for "the files", it returns all files regardless of visibility. To filter out invisible files:
filter tFileList without ".*"
As for "the files", it returns all files regardless of visibility. To filter out invisible files:
filter tFileList without ".*"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn