Initializing Text Fields

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Initializing Text Fields

Post by warrenk » Wed Sep 24, 2008 2:21 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10049
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Wed Sep 24, 2008 4:05 pm

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 ".*"
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply