PDA

View Full Version : I know this is simple but need a little help with input



bobbie
10-15-2007, 11:15 PM
I have a button and a input box, i want to browse to a drive/folder and when you click on it , it will show the path in the input box.
And dang if I can think how to do it right now.
Thanks for helping me out.
Oh my I got it.

result = Dialog.FolderBrowse("Please select a folder:", "C:\\");

Input.SetText("Input1",result);

Dermot
10-15-2007, 11:28 PM
You would want to check that they did not click Cancel.


result = Dialog.FolderBrowse("Please select a folder:", "C:\\");

if result ~= "CANCEL" then
Input.SetText("Input1",result);
end

bobbie
10-15-2007, 11:35 PM
Thank you, forgot about that.