Look at my code below, and try it in the commandWindow:
Code: Select all
put "603+,115,603,107,116" into laList
put "603" into leTest
answer itemOffset(leTest,laList)
Any idea how I could optimize this code ?
Kind regards.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put "603+,115,603,107,116" into laList
put "603" into leTest
answer itemOffset(leTest,laList)
add "set the wholeMatches to true"put "603+,115,603,107,116" into laList
put "603" into leTest
answer itemOffset(leTest,laList)
Code: Select all
put "603+,115,603,107,116" into laList
put "603" into leTest
set the wholeMatches to true
put itemOffset(leTest,laList) into field 1
You've got it Berndadd "set the wholeMatches to true"