What is up with the 'FIND' function?
- Posted by ZNorQ <znorq at holhaug.com> Mar 23, 2006
- 604 views
Hey, I'm trying to get the 'FIND' function to use properly, but I just don't get it to work the way I want it to. I have a string called zALPHA, containing all the letters in both upper and lower case; constant zALPHA = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" Further, I have a sequence - 'eRevision' - which contains a letter in the above range (Hence, the eRevision is of length 1, but still a sequence.). Lets say the eRevision sequence contains 'c', I'd think that the following function should return '3', but it returns '0' (Zero); eFindResult = find(eRevision, zALPHA) ..while THIS function returns the correct number; EFindResult = find(eRevision[1], zALPHA) Could someone please explain this to me? Regards, Kenneth 'ZNorQ' Nilsson