Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select, where, like
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Select, where, like
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows Server 2008 R2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01663519
Message ID:
01663519
Views:
73
Hello friends; I have a doubt with the following, if I write in this way, it works:

SELECT CContratos.NOMBRE, CContratos.CONTRATO, CContratos.DECHA, CContratos.PRESTAMOA, CContratos.IMPORTE, CContratos.FECHAREF, CContratos.FECHACOMER, CContratos.STAT;
FROM CContracts WHERE CContratos.NAME LIKE "% JORGE%" INTO Cursor CONTRNOMB readwrite
Thisform.Grid1.RecordSourceType = 1
ThisForm.Grid1.RecordSource = 'CONTRNOMB'
Thisform.Grid1.Refresh

But nevertheless; When I do this one, it does not work ... what is the error?

lNomb = ALLTRIM (This.Value)

SELECT CContratos.NOMBRE, CContratos.CONTRATO, CContratos.DECHA, CContratos.PRESTAMOA, CContratos.IMPORTE, CContratos.FECHAREF, CContratos.FECHACOMER, CContratos.STAT;
FROM CContracts WHERE CContratos.NAME LIKE "% lNomb%" INTO Cursor CONTRNOMB readwrite
Thisform.Grid1.RecordSourceType = 1
ThisForm.Grid1.RecordSource = 'CONTRNOMB'
Thisform.Grid1.Refresh
Next
Reply
Map
View

Click here to load this message in the networking platform