AdamWhitehouse
Programmer
I have got a dynamic array which reads Tags and strings in from a .ini file, How can I read the "Array" Id back only knowing the string, ie:
dim tag$(3)
tag$(1)="ONE"
tag$(2)="TWO"
tag$(3)="THREE"
"THREE"= ???? I want to read back 3 here.
At the moment I am finding the id by using a for loop ie;
for a= 1 to 3
if tag$(a)="ONE" then etc....
this is costly in time when the tag list is huge.
any suggestions appreciated.
Adam
dim tag$(3)
tag$(1)="ONE"
tag$(2)="TWO"
tag$(3)="THREE"
"THREE"= ???? I want to read back 3 here.
At the moment I am finding the id by using a for loop ie;
for a= 1 to 3
if tag$(a)="ONE" then etc....
this is costly in time when the tag list is huge.
any suggestions appreciated.
Adam