Posted by Keith Smith on October 16, 2006 at 13:59:10:
In Reply to: Re: Nova/Comet 2006 posted by Barbara Brazil on October 16, 2006 at 13:45:46:
here's a brief source listing of the Nova NOTEPAD launch
Open "C1A" !Customer Master
Open "C1N" !Customer Notes
!---- Create TXT file and Load Comments
Create Text File
Load Text file using KEY, READ, GOTO statements
....
etc, etc, etc..
!---- TEXT file is created, now call NOTEPAD -----
A$=PATH(SYSDSK$)
A$="NOTEPAD.EXE "+A$+"TEXTFILE.TXT"
Print (0) (Launch=A$)
Input (0) Result$
!---- Complete, now exit this call program ----
Close "C1a" & Close "C1n"
Exit
I can supply original source if that helps... The part that confuses me is that I've been doing this for years, bur always involved making a window. This time, I don't need a window. Took an existing program that's been working for years and still does and included the following code to mimic my NOTEPAD call program.. This statement was placed after opening some comet files but before any screen I/O...
IF "A" NE "B", GO 9990
.....
9990 CLOSE (1) & CLOSE (2) & CLOSE (3)
EXIT