Hello everyone. This problem I'm running into should be pretty simple,
so I'm not sure what I'm doing wrong.
I have an application I'm developing for a windows mobile device.
In it I have a globally defined array that gets filled from a web
service. The program needs to validate user input into an entry field
against that array to see if the value entered resides somewhere in that
array.
Should be pretty easy right?
I was able to successfully do something very similar with a
two-dimensional array without trouble, but for some reason this
one-dimensional array refuses to cooperate.
Here my array is globally defined.
garrLocations is dynamic array
garrLocations = new array of string
Here my array gets filled by the web service.
And I can check this by looping through the array and using INFO() to
display each value. And each value is there.
bufResult is Buffer
bufResult = InventoryAudit_GetLocations()
Deserialize(garrLocations,bufResult,psdXML)
ArraySort(garrLocations,asAscending)
And here is where it tries to validate the data entry against the array.
I've tried several different search types, but they only ever return -1
nResSubscript is int
nResSubscript = ArraySeek(garrLocations,asLinearFirst,EDT_TagNumber)
Info(nResSubscript)
Any ideas would be greatly appreciated.