You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Thanks to everyone who posted suggestions. All were helpful. I am very much appreciative of the willingness of you all to help those of us who are way behind the curve.
You could try something like this at the start of your program..
Code:
Function PbMain()
Dim sTest$
If command$ = "" Then
sTest = INPUTBOX$("Gimme a filename dummy!", "Command Line missing", "Default.bas", 200, 200)
Else
sTest = Command$
End If
MsgBox sTest,,"Result"
End Function
If the processing of the file is all you need, then a simple MSGBOX statement would do.
If on the other hand you are going to have a dialog with other input and/or information then either a message box or a static control (Label) on the dialog would do the trick.
I am writing a commandline program which requires a filename as input. I want to say "Hey, dummy, you forgot to supply the filename parameter". Since I wrote it, and I'm the only one who will use this program, I figure it's it's OK to call the user a dummy.
I have searched my PBWin documentation and the FAQ for a way to write a message to the display screen and I've come to the conclusion that there is no instruction which allows me to do this in PBWin. Am I correct or am a dummy.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: