Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: AdoQuery Locate VarArrayOf Problem

Permlink Replies: 0
Coşkun Çınar

Posts: 2
Registered: 4/17/17
AdoQuery Locate VarArrayOf Problem
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 21, 2017 5:09 AM
We are migrating a of apps built in Delphi 7 to Delphi 10.1.2 Berlin.

We have encountered an issue that we have been unable to resolve.

We used AdoQuery.Locate in many places
like this

this code doesn't work .

Project Proje1.exe raised exception class EVariantTypeCastError with message 'Could not convert variant of type (Array Variant) into type (OleStr)'.

I think the problem is due to the system.pos method
and i think its bug

Can you check this part.

Thanks in advance

Edited by: Coşkun Çınar on Mar 21, 2017 5:09 AM

Edited by: Coşkun Çınar on Mar 21, 2017 5:10 AM
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02