Using FindFirst and FindNext to build a tree from a wirelist. Build array of possible points to search and use pointer to index thru them adding more points to the array end until the tree is complete. The possible wires with beginning and end points are storeed in a table as text fields. The array is a string array. The code is:
tmpStr = "([TO_LRU_CONN_PIN] = '" & tmpArray(tmpArrayPointer) & "' AND [Group Number] = 0) "
rstCommon.FindFirst tmpStr
This works 80% of the time. Except for: E.G. tmpArray(at current pointer) = "3050 A1J143 a". FindFirst finds a record that matches where field [TO_LRU_CONN_PIN] = "3050 A1J143 A". I looped thru after FindFirst found its matching value and stripped out each character using the mid function and compared the two strings; the comparison says that the alpha characters "a" and "A" are equal. I then converted each character to ASCII and the comparison reported that "A" (ASCII 65) does not equal "a" (ASCII 97). Both strings are the same length; and look identical when printed. As far as I can determine, lowercase is being treated as upper case. Is there some criteria qualifier that is automatically converting lowercase to upper case or vice versa? I have searched the forums and internet, but not found a case where FindFirst finds a wrong string.
Thanking you in advance.
tmpStr = "([TO_LRU_CONN_PIN] = '" & tmpArray(tmpArrayPointer) & "' AND [Group Number] = 0) "
rstCommon.FindFirst tmpStr
This works 80% of the time. Except for: E.G. tmpArray(at current pointer) = "3050 A1J143 a". FindFirst finds a record that matches where field [TO_LRU_CONN_PIN] = "3050 A1J143 A". I looped thru after FindFirst found its matching value and stripped out each character using the mid function and compared the two strings; the comparison says that the alpha characters "a" and "A" are equal. I then converted each character to ASCII and the comparison reported that "A" (ASCII 65) does not equal "a" (ASCII 97). Both strings are the same length; and look identical when printed. As far as I can determine, lowercase is being treated as upper case. Is there some criteria qualifier that is automatically converting lowercase to upper case or vice versa? I have searched the forums and internet, but not found a case where FindFirst finds a wrong string.
Thanking you in advance.