Solved

Live Query Result set in Delphi1.6

Posted on 1997-06-27
5
170 Views
Last Modified: 2010-04-04
I'm submitting a standard query with 'like' operator in the where clause.  I'm setting Request live to True, but the program is not sending a Live Result set back.

the select statement is

select area10."FILENAME", area10."SPC_NO" from area10 where area10."SPC_NO" LIKE '%232%'

where area10 is the table name and 232 is to be found in one record of the SPC_NO field.

If I substitute "where area10."SPC_NO" = '12321' this returns a live result set, but with the like operator it does not.  The Delphi documentation state like operators should return live sets, is the documentation incorrect or am I doing something wrong.

Cheers
0
Comment
Question by:cuchulain
  • 4
5 Comments
 

Author Comment

by:cuchulain
ID: 1337914
Adjusted points to 200
0
 

Author Comment

by:cuchulain
ID: 1337915
Adjusted points to 230
0
 

Author Comment

by:cuchulain
ID: 1337916
please if anyone can help with this problem it would be help a lot...

0
 

Author Comment

by:cuchulain
ID: 1337917
Adjusted points to 255
0
 

Accepted Solution

by:
hsk91071997 earned 250 total points
ID: 1337918
In my code, Like operator returns a live sets.

Your Code :

  select area10."FILENAME", area10."SPC_NO" from area10 where area10."SPC_NO" LIKE '%232%'

Change your code like this
 select area."FILENAME" ,area."SPC_NO" from "area10.db" area
 where areae."SPC_NO" LIKE '%232%'

and , if you want change some field you want, insert Query's Edit method , of course you had done.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 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