Yes the first part of your explanation is what I am doing, selecting the
Deutsch word randomly and presenting it in a dialog box. Im not familiar
with arrays, I will have to do some reading.
Thanks for your response
From: Dick Gascoigne [mailto:dick.gascoigne@...
Sent: Thursday, March 04, 2004 8:46 AM
Subject: Re: [Clip] Help with Note Tab
I don't have time to model it, but consider doing something along the line
Set up an array variable, with each element being a string containing the
word im Deutsch and the correct responses, separated by blanks. "elf eleven
Pose the question via dialog box (perhaps randomly selecting the question
from the array by random number). If you use the array element at position
^%Index% as the basis for the question, the word is the first word in
When the user enters the response, a pattern match of the response against
the element string tells if the answer is correct.
If you're coming up with the question some other way, to find if the
response is correct you might have to first loop through the array until the
"first word" matches the Q, and then pattern match the A.
There might be an easier way to search the whole array for the proper
element, rather than looping, but I don't know how.
Is that what you had in mind?
Dick in Singapore
----- Original Message -----
From: "Kevin Witherite" <KWITHERITE@...>
Sent: Thursday, 04 March, 2004 9:14 PM
Subject: RE: [Clip] Help with Note Tab
> Actually it's a language translation. When the user is asked "elf" the
> should interpret both answers "11" or "eleven" as correct. Thus the
> variable "elf" needs to represent both "11" and "eleven".
> -----Original Message-----
> From: Don Daugherty [mailto:daugherty@...]
> Sent: Wednesday, March 03, 2004 5:58 PM
> To: firstname.lastname@example.org
> Subject: Re: [Clip] Help with Note Tab
> > >Any one know of a way to set the same variable to two different
> > >Example: I would like to set the value of variable "elf" to both "11"
> > >"eleven"
> > >
> > Or you might want to append two values into one variable.
> > ^!Set %elf%=11
> > Then:
> > ^!Append %elf%=^%SPACE%eleven
> > Which will display "11 eleven" when you run:
> If your intent is to then use variable in a search, looking for "11" or
> "eleven", you could generate the appropriate Regular Expression
> "(11)|(eleven)" for your variable value, and then refer to the variable in
> Find or Replace command, e.g., ^!Find "^%SearchVar%" RI
> Yahoo! Groups Links
> Yahoo! Groups Links
Yahoo! Groups Links