.....browsing the window......

gaurab

New Member
Hii...
i am really new to progress and i am trying to learn this language on my own. i am currently doing a dummy project where i have to browse through the windows (i.e. my OS). The exact senario is :

i have a "FILE" tab which contains the regular fileds like " NEW , OPEN , CLOSE, SAVE , SAVE AS ,....etc....).. now when i choose "OPEN" i want a new window to be opened which shows a particular drive or directory i specify ( and i need to able to browse out of this directory as well ). How could i achieve this ???
do i need to use smart objects for that ?? i dont know much about their usage as well ??
plz help.... i am using windows x/p... n my computer ...
thanks and regards

Gaurab
 

curly

New Member
To access files / directories use statement:

SYSTEM-DIALOG GET-FILE

Example:
define variable cFileName as character no-undo.

system-dialog get-file cFileName
filters
"Text Files (*.txt)" "*.txt",
"Xml Files (*.xml)" "*.xml",
"All Files (*.*)" "*.*"
initial-filter 1
initial-dir "."
must-exist
title "Open File".


Regards,
Marian
 

gaurab

New Member
thank u very much MARIAN.....
that was exactly wht i was looking for:blush:

many thanx...
Gaurab:lol:
 
Top