• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

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
0
millerw
Asked:
millerw
  • 2
1 Solution
 
millerwAuthor Commented:
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
0
 
phillipfCommented:
Try This:

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

 

0
 
millerwAuthor Commented:
Don't I feel like an idiot :-)

Thanks
Scott
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now