Announcement

Collapse
No announcement yet.

"print" to screen of command window?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cliff Nichols
    replied
    "Hey, dummy, you forgot to supply the filename parameter"
    And if the code gets away from your hands you could always use codes to convey a :doh: moment

    User Error:
    ID: 10 T
    Error Cause: Parameter Missing
    Remedy: Include File Name
    When in reality User ID 10 T spells out IDIOT
    (Although anyone that catches it, may not appreciate it, or they may start laughing)

    Leave a comment:


  • Steve Frye
    replied
    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.

    Leave a comment:


  • Michael Mattias
    replied
    OR...

    Simple STDOUT for PB/DLL and PB/Win 2-13-04

    And since you now have a STDOUT available, you can 'sex it up' with...

    Wait for key, click or clock for PB/WIN and PB/CC

    MCM

    Leave a comment:


  • Eric Pearson
    replied
    Steve --

    If I understand your goal, try the WriteConsole API. Sample code is provided in this thread: http://www.powerbasic.com/support/pb...e+getstdhandle

    -- Eric

    Leave a comment:


  • Dave Biggs
    replied
    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

    Leave a comment:


  • Fred Buffington
    replied
    It depends on how/what you want to do.

    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.

    Leave a comment:


  • Steve Frye
    started a topic "print" to screen of command window?

    "print" to screen of command window?

    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 :confused2: or am a dummy.

    Steve
Working...
X