WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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:   W12861
Filename:   Use of Intcontrol(4,1,0,0,0) with ItemSelect Listbox.txt
File Created: 1999:04:15:16:50:08
Last Updated: 1999:04:15:16:50:08