New to focal point. I have a need to allow users to enter multiple values in a text box. This text box would then be included as part of the WHERE clause in my SQL statement for record selection. This is not selecting from a list box, but a user entering multiple values for selection. I have no idea where to begin with this one, any help would be greatly appreciated
November 02, 2005, 07:46 PM
N.Selph
You can have them enter the values, separated by a comma or other punctuation. Then use the ARGLEN function to figure out how many values have been put into the &variable (if they are all the same length). Then use the GETTOK function, to break out the values into separate variables. You will have to put that into a Dialogue Manager loop, controlled by the number you have found using ARGLEN.
Assume the textbox value is &VALUEIN, and it the user has put in something like 123456,456456,789789
The number of values being entered is 2 and the code is producing 3. What is the purpose of the divide by 7. My values are 12 characters long and can contain embedded spaces as well. I must be missing something. Help. Thanks
November 04, 2005, 07:43 PM
N.Selph
In my example, my values were six characters long, and one character separator, so I divided by 7. You probably want to divide by 13. You want to find out how many values got input into the &VALUEINX, so you know how many times the loop has to go around.