I'd say that Regular Expressions are the way to go, to detect the lname, fname combination. I'd then write that data into a table with each lname, fname combination as records and have a value list generated from those fields.
For RegEx Have a look at: http://www.spf-15.co...s/Regex.fp7.zip
Since your data looks ¶ delimited you should be able to use GetValue in a loop to analyze each line. Drop each line into a variable then $Left = Position(Variable;">",1;1) will give you the left edge of your data and $Right = Position(Variable;"<",1;2) will give you the right edge.
You could then use Middle(Variable;$Left; $Left - $Right) //or something like that with adjustment for actual character itself
<option selected="selected" value="<ALL>"><ALL></option>
<option value="Domain\aaRequestor">Requestor, </option>
<option value="Domain\UserID1">lname1, fname1</option>
"One man's constant is another man's variable." --- Alan Perlis
Thanks for that very cool file. A bit frightening but very cool.
“Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.” – Jamie Zawinski (or maybe Fredrik Lundh)
That's a terrific effort but the output is wrong on the first test that I made.
Text: There was $4200 left.
Calc: RegexMatch( Text; Pattern )
I was expecting the result to be $420.
I have attached a file that is much simpler than using RegEx.
It's about 95% there so you will need to play around with it to get exactly what you want (i.e. read in the data from the file into the HTML field etc). However it is fully "dynamic" and will take in any number of well formulated HTML rows from the HTML field.
I hope it helps!
ExtractList.fp7.zip 9.2 K
You're right. I had only tried it with 3 digit numbers!
The ExtractList sample file seems to do the trick. Thanks!
I will play around with it so I can get exactly what I want.
Thank you for your help.