Use of IntControl(4,1,0,0,0) with ItemSelect Listbox
Keywords: IntControl(4,1,0,0,0) ItemSelect Listbox
Question:
The blurb on the ItemSelect Listbox in the WinBatch User's Guide, pg 68, says that putting a "1" in the second position in IntControl(4 ...) requires that an item must be selected from the list before it proceeds. This doesn't work for me; the script just continues anyway.Am I missing something?
Do I have to test some condition manually and set up an error procedure?
Answer:
The documentation there lies. IntControl 4 only affects FILELIST boxes, not ItemSelect boxes.IntControl 33 is related to ItemBoxes but does not do what you want.
If the listbox variable is NULL, then the user did not select anything. So you could test for that.
Article ID: W12861Filename: Use of Intcontrol(4,1,0,0,0) with ItemSelect Listbox.txt