 | | Wide Studio Object Reference
| |
Class Name
WSCfileSelect
Specification of methods
getFileName method
- Form
- char* getFileName()
- Function
- Returns the selected file name.
- Description
-
- Parameters
- Nothing.
- Return value
- Returns the file name.
- Notice
- The file name is full path name,and
do not release this.
It is possible to get the pure file name by the WSNfileName
property,and to get directory name by the WSNdirName property.
- Samples
-
#include <WSCfileSelect.h>
extern WSCfileSelect* newfsel_000;
void sample_proc(WSCbase* object){
//popup the file selection dialog up.
long ret = newfsel_000->popup();
//if a file is selected...
if (ret == WS_DIALOG_OK){
//get it's file name.
char* fname = fselect->getFileName();
}
}
Document Release 3.0 For Use with Wide Studio Release 3.0, Summer 2002 Wide Stuido Home | Up to Copyright(C) T. Hirabayashi, 1999-2002 | | Last modified: July 15, 2002 | |