hexagon logo

Drop Down List

Here is a utility to give you a Drop Down List in PCDMIS.

Go here to find it.



Linky

Suggested locations: C:\PCDUTIL\

Usage:
STARTUP    =ALIGNMENT/START,RECALL:, LIST= YES
            ALIGNMENT/END
            LOADPROBE/TP20-3X50
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,Preload the "NO ANSWER" to check for no response from operator
            ASSIGN/DROPLIST = "NO ANSWER"
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,Command line to get the drop down. PCDMIS has a 256 character limit per line.
            EXTERNALCOMMAND/NO_DISPLAY, WAIT ; C:\PCDUTIL\DROPLIST.EXE Choose Operator|Ted Bundy|Henry Lee Lucas|John Wayne Gacy|Jeffrey Dahmer
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,Test for "NO ANSWER" and branch to end of program(handle as you want)
            IF_GOTO/DROPLIST == "NO ANSWER",GOTO = END_OF_PRGM
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,Just a comment to test the results
            COMMENT/OPER,YES,DROPLIST
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO,
            COMMENT/DOC,NO,
            COMMENT/DOC,NO,Part Program here.....
            COMMENT/DOC,NO,
            COMMENT/DOC,NO,
            COMMENT/DOC,NO,***************************
            COMMENT/DOC,NO, Here is the Label that the above test goes to.
END_OF_PRGM=LABEL/



EXTERNALCOMMAND/NO_DISPLAY, WAIT ; C:\PCDUTIL\DROPLIST.EXE Choose Operator | Ted Bundy | Henry Lee Lucas | John Wayne Gacy | Jeffrey Dahmer
The parameters for the utility are:

Drop Down List Title Required
Field delimiter(Pipe) Required
List items At least one required

List items are show in the order that they are entered. A sort does not occur.

The variable in PCDMIS must be DROPLIST.
Parents

  • Quote:
    Can anything capable of returning a value on the MS-DOS command line be used?
    Not sure I understand the question.


    Well...I am not sure if I am asking the right question, so that probably clouds things further. My understanding of such things isn't entirely clear. Anyway, there is this thing about stdin and stdout (at least I think these concepts apply to windows stuff and not just to Linux). I am guessing that an external program that passes a value through stdout can pass a value into PC-MDIS? Would your program be using this concept to pass the value back to PC-DMIS, and if so, does that mean that any program, written in whatever language, as long as it uses stdout (or whatever the windows equivalent is), pass a value back into PC-DMIS? Does it necessarily have to be Visual Basic?

    Anyway, the above is what I am referring to when I say "return a value to the MS-DOS command line." If I write a simple script in some language, that say, adds two numbers togeter and prints out a value on the command line, then call that script from PC-DMIS with an appropriately named variable, will the value be passed back into PC-DMIS?
Reply

  • Quote:
    Can anything capable of returning a value on the MS-DOS command line be used?
    Not sure I understand the question.


    Well...I am not sure if I am asking the right question, so that probably clouds things further. My understanding of such things isn't entirely clear. Anyway, there is this thing about stdin and stdout (at least I think these concepts apply to windows stuff and not just to Linux). I am guessing that an external program that passes a value through stdout can pass a value into PC-MDIS? Would your program be using this concept to pass the value back to PC-DMIS, and if so, does that mean that any program, written in whatever language, as long as it uses stdout (or whatever the windows equivalent is), pass a value back into PC-DMIS? Does it necessarily have to be Visual Basic?

    Anyway, the above is what I am referring to when I say "return a value to the MS-DOS command line." If I write a simple script in some language, that say, adds two numbers togeter and prints out a value on the command line, then call that script from PC-DMIS with an appropriately named variable, will the value be passed back into PC-DMIS?
Children
No Data