Arraysearch()

Wiliam Ballard yardbird at vermontel.net
Mon Apr 7 11:40:07 PDT 2008


Arraysearch() returns a number, the number of the array item which  
meets a certain text criteria, right?

Here's the command to try this out:

message array(slug,arraysearch(slug,Music*,1,¶),¶)

where slug = lvariable containing a chunk of text, each line ending  
with a ¶
Music = the first word in the line I want to extract

Following the example in the Reference, the word searched for (here,  
Music) has no formatting (ie., "Music") beyond the wild card  
characters "?" and "*".

As soon as I append "*" to my search word (to find the number of the  
array item which begins with that word), the procedure window  
complains (Operand expected but not found) as if it wanted to do some  
multiplication.

Am I missing something?

TIA

mr bill



More information about the Qna mailing list