Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Locate :-(

Posted on 1998-03-31
3
Medium Priority
?
170 Views
Last Modified: 2010-04-06
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
Comment
Question by:millerw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Author Comment

by:millerw
ID: 1361137
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
 

Accepted Solution

by:
phillipf earned 200 total points
ID: 1361138
Try This:

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

 

0
 
LVL 1

Author Comment

by:millerw
ID: 1361139
Don't I feel like an idiot :-)

Thanks
Scott
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question