WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: MikeInThe901 on August 03, 2023, 05:00:46 PM

Title: Multiple Questions in one Window?
Post by: MikeInThe901 on August 03, 2023, 05:00:46 PM
Noob here!

I'm using AskItemList function to get input from the user to choose from a list of two options for office location. Is there a way, in the same window, to ask for a text string input for a second variable in that window? Or otherwise a way to populate those two variables from one window?

Thanks!
Title: Re: Multiple Questions in one Window?
Post by: JTaylor on August 03, 2023, 06:04:59 PM
Assuming I understand the question, you will need to create a dialog for that purpose.   Just search for Dialog in the Help Index and it will give you four sections to peruse.  This should get you well on your way.

Jim
Title: Re: Multiple Questions in one Window?
Post by: stanl on August 04, 2023, 05:07:20 AM
Quote from: JTaylor on August 03, 2023, 06:04:59 PM
Assuming I understand the question, you will need to create a dialog for that purpose.   Just search for Dialog in the Help Index and it will give you four sections to peruse.  This should get you well on your way.

Jim


Agree with Jim. Depending if you want a single select for multiple controls or multi-select from a single control.... Based on what you wrote there appears to be only a single selection from 2 options - if true I would go combo box
Title: Re: Multiple Questions in one Window?
Post by: MikeInThe901 on August 04, 2023, 03:49:40 PM
Used a Dialog & knocked it out. Thanks!
Title: Re: Multiple Questions in one Window?
Post by: JTaylor on August 05, 2023, 06:05:29 AM
Excellent.   Glad to hear it did what you needed.

Jim