Hi again Matt.
[previously hard-coded filename now gray 'cause filename control input
added]
> What do I do!?
Ain't it sumpin? Remove the control input pin so the filename field is
re-enabled. Erase the old name, add the control input back and connect it.
Save. You can now load & run the program on whatever computer without
worrying about missing files or directories.
Shawn Fessenden
Mgr., Technical Support
Oswego Software, Inc.
mailto:shawn@oswegosw.com
http://www.oswegosw.com
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.hp.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.hp.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.hp.com".
---------------------------------------------------------------------
[previously hard-coded filename now gray 'cause filename control input
added]
> What do I do!?
Ain't it sumpin? Remove the control input pin so the filename field is
re-enabled. Erase the old name, add the control input back and connect it.
Save. You can now load & run the program on whatever computer without
worrying about missing files or directories.
Shawn Fessenden
Mgr., Technical Support
Oswego Software, Inc.
mailto:shawn@oswegosw.com
http://www.oswegosw.com
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.hp.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.hp.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.hp.com".
---------------------------------------------------------------------
>Hello!
>
>I'm a new user and just joined the usergroup.
>
>Does anybody know of a method to select a default directory to search for
>data files. The idea is to set a global "default directory" variable that
>the user would always refer to when using the "Filename Selection" Object.
Kennedy,
The method I came up with was to hard code an initial data directory and
feed that to the first filename selection object. Once the user navigates
to the directory he wants to save or read files from and enters a filename,
I then strip off the filename and store the directory in a variable. The
next time a user needs to select a file he would then start in whatever
directory he was last in.
This satisfies the needs of my users.
How I did it was thru string manipulation. First reverse the file
name. Search for the first occurrence of either a or / (need to support
unix filenames) and then return the string from that position to the end of
the filename. Reversing it once again produces the directory without the
filename.
Hope this helps
Mike Asbery