Crash using LIKE and tables linked by objectPtr

bdone bdone at wanadoo.fr
Tue Apr 19 17:50:27 CDT 2005


Hi,

I’m a new user of this list and I appreciate it.

It seems I’ve found a problem using LIKE and tables linked by objectPtr.
I tested on Mac and Windows the example file : API_way 
\Link_ObjectPtr_Records\Link_ObjectPtr_Records.rb.

I add a test button to the LinkTestWindow window with the follolwing  
code :
   dim curs as VCursor
   dim str as string
   str = "SELECT Person.*, Phones.* FROM Person, Phones where  
person.FirstName LIKE '%obert'"
   curs  = MainWindow.mDatabase.SqlSelect(str)

Clicking on the test button, the program crashes.

If I replace
LIKE '%obert'
By
= ‘Robert’

the VCursor return the right selection.

May be I’ve done a mistake..

Thanks for your help

Bernard



More information about the Valentina mailing list