Flash array question
Flash array question
- Started
- Last post
- 2 Responses
- fues
I have an array:
myArray["home", "about us", "contact"]Then I have a var:
myVar = "home"My question is: how can determine the numeric value of myVar in the array?
For example: myVar = "home" is number 0 in myArray, if myVar would be "contact" for example, the number of myVar in the array would be 2 and so on..Thanks!
- blaw0
use a for loop to loop through the array and then compare the variable name to the variable number of the loop.
- fues0
Thanks Blaw!