Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About dialog box call
#1
For some time now I have been using the following for dialog box calls from the .DLL MSDN library:

Code: (Select All)
' dialog box
If VarX = -1 Then
  Result = GetOpenFileNameA&&(OpenCall) ' Do Open File dialog call.
End If

If VarX = -2 Then
  Result = GetSaveFileNameA&&(OpenCall) ' Do Save File dialog call.
End If
Although I was unaware they are supported within QB64 as such:

Code: (Select All)
Midi$ = _OpenFileDialog$("Open File", "", "*.mid ", "Midi files", 0)

If _MessageBox("MidiPlay", "Load: " + Midi$, "yesno", "question") = 0 Then Color 7: End
_MessageBox "MidiPlay", "Press <enter> to quit: ", "info"
My real question is if the box call can return filenames, how do I get a name of a folder instead!?

Thanks, Erik.
Reply


Messages In This Thread
About dialog box call - by eoredson - 05-07-2024, 02:50 AM
RE: About dialog box call - by a740g - 05-07-2024, 05:34 AM
RE: About dialog box call - by eoredson - 05-08-2024, 06:10 AM
RE: About dialog box call - by bplus - 05-08-2024, 09:52 AM
RE: About dialog box call - by eoredson - 05-09-2024, 03:13 AM



Users browsing this thread: 1 Guest(s)