Link to home
Start Free TrialLog in
Avatar of millerw
millerw

asked on

Locate :-(

FCurrTable.Locate('CURRENCY', VarArrayOf([S]), [])

Why does that give an EVariantError "Invalid variant type conversion" exception?

Locate always works fine till I want to search for one field.  How can I search on one field that is NOT case sensitive?  FindKey doesn't appear to work--case sensitive so it seems.

Scott
Avatar of millerw
millerw

ASKER

BTW, S in the line is a string....and I know about loCaseInsensitive---I removed it while trying to debug the line to remove any complexity that may be causing problems.

Scott
ASKER CERTIFIED SOLUTION
Avatar of phillipf
phillipf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of millerw

ASKER

Don't I feel like an idiot :-)

Thanks
Scott