I am migrating VFP database to Oracle. While converting locate command into select query , I have used ? before variable name. But it is not working . Pls. refer below
** I am not able to understand this strange behaviour. Query don't run for lcCriteria,when I assign value of lcCriteria to another variable lcCrit, code works fine.
Code:
Procedure Proc1
[indent]Lpara lcCriteria[/indent]
[indent]*- on running below line , i/p box opens for getting parameter value[/indent]
[indent]sqlexec(nHandle,"Select * from Variables where Criteria = ?lcCriteria")[/indent]
[indent]lcCrit = lcCriteria[/indent]
[indent]*- Below line is fetching result
[indent]sqlexec(nHandle,"Select * from Variables where Criteria = ?lcCrit")[/indent]
** I am not able to understand this strange behaviour. Query don't run for lcCriteria,when I assign value of lcCriteria to another variable lcCrit, code works fine.