Solved

Locate :-(

Posted on 1998-03-31
3
162 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
  • 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 50 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now