
STARTUPINFO should be able to help you here, but the easiest way (although not bullet-proof) is just test CURSORX and CURSORY at the start of the program...
Code:
FUNCTION PBMAIN IF CURSORX * CURSORY = 1 THEN ' Cursor at top/left (assume console is clear, so *probably NOT* ' launched from the command-line) StandAlone& = -1 END IF ... IF StandAlone& THEN WAITKEY$ END FUNCTION
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: