fixed 2 bugs in 2 lines of wxFileSelector example code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-07-01 11:45:37 +00:00
parent 801225c191
commit f0f1207339

View File

@ -1385,11 +1385,13 @@ The application must check for an empty return value (the user pressed
Cancel). For example:
\begin{verbatim}
const wxString& s = wxFileSelector("Choose a file to open");
if (s)
wxString filename = wxFileSelector("Choose a file to open");
if ( !filename.empty() )
{
// work with the file
...
}
//else: cancelled by user
\end{verbatim}
\wxheading{Include files}