wildcard usage
- Posted by Norm Goundry <bonk1000 at HOTMAIL.COM> Apr 10, 1999
- 538 views
got a bit of a thing that has been driving me slowly insane since I first started using EU. I have tried every permutation of code to create a 'wildcard' method to substitute for many lines of branching to strings of data; question: is it possible to turn this...? --string 1 a1={"cat","dog","mouse"} --string 2 a2={"chicken","duck","cow"} input=x string_to_fetch="a" & x --where string_to_fetch is executable in the same way --that either string_to_fetch=a1 or string_to_fetch=a2 is -- I know that this isn't legal code, but perhaps you get the idea. I am polishing up some of the code of a huge database written in EU and this would be extremely useful if it is possible to do such a thing. I could do it on my old Amiga when using AMOS Basic. Any ideas that I haven't thought of yet?, any thing that works?, any help and suggestions for this will be mightly appreciated. Note: I don't wish to hear any lecturing about this bringing on the nightmare of 'speghetti-code'... if it is doable it can be usable. thanks Norm