View Full Version : String out of fileBrowserDialog
Cycone 10-03-2004, 08:11 PM Hi guys,
im working on a little script and i need the string (the path) that comes out of the fileBrowserDiaolog. How can I acces this string? Im totally new to MELL so I hope sombody knows a simple solution :) thnks,
cheers Koen
|
|
john_homer
10-03-2004, 10:57 PM
global proc thisProcDoesStuffWithTheLocation (string $dirPath, string $fileType)
{
print ("the path is " + $dirPath);
}
// create a fileBrowserDialog, and send the result to the proc thisProcDoesStuffWithTheLocation
global proc thisIsTheProcYouCall()
{
fileBrowserDialog -m 4 -fc SetSyflexCacheNames -ft "directory" -an "Pick the Location to save cache files";
}
Cycone
10-03-2004, 11:11 PM
Thanks John, but do you always have to use procedures to get the ""result"" out of an object?
john_homer
10-04-2004, 12:20 AM
if you want a file name, not a folder you can use this...
string $theFile = `fileDialog -directoryMask "/usr/u/bozo/myFiles/*.mb"`;
print $theFile ;
CGTalk Moderation
01-19-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.