Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String array access with nonumeric argument

Status
Not open for further replies.

Alincon2001

Programmer
May 16, 2001
22
US
StringVar array Isls:=["Oahu", "Maui", "Hawaii", "Kauai"];
isls[instr("OMHK",{s8_mast.CV_NUMBER}[1])]

This formula takes the first position of a field:
s8_mast.CV_NUMBER}[1])

Finds the matching position in a constant:
'instr' not 'in' or 'instring'

and finds the Island name in the array.

I thought perhaps this might help someone else.
r.m.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top