asergeev
Programmer
- Jul 22, 2003
- 13
Hi,
Our program updates a parameterized remote view against MS SQL Server. When we are trying to REQEURY this view after successful update with a new parameter VFP 9 doesn't update view and REQUERY returns -1. VFP 9 Help doesn't provide any information about return value of -1 for REQUERY.
Here is code example.
* Open remote parameterized view
use abc!remvw in 0
*VFP asks for parameter input
*Input parameter value: '000000342'
browse
* VFP opens view with required record.
* Change some field
replace fld1 with "abc"
* Commit changes
?TABLEUPDATE(.T.)
*Result .T.
*Let's REQUERY with a new parameter value
parm1 = '000000348'
?REQUERY('remvw')
*Result -1 !!!
browse
*View contains previous record.
When we are doing the same in VFP8 we don't have any problems with REQUERY - it returns 1 and view has a new record.
Any thoughts will be helpful.
Thanks,
Andrei
Our program updates a parameterized remote view against MS SQL Server. When we are trying to REQEURY this view after successful update with a new parameter VFP 9 doesn't update view and REQUERY returns -1. VFP 9 Help doesn't provide any information about return value of -1 for REQUERY.
Here is code example.
* Open remote parameterized view
use abc!remvw in 0
*VFP asks for parameter input
*Input parameter value: '000000342'
browse
* VFP opens view with required record.
* Change some field
replace fld1 with "abc"
* Commit changes
?TABLEUPDATE(.T.)
*Result .T.
*Let's REQUERY with a new parameter value
parm1 = '000000348'
?REQUERY('remvw')
*Result -1 !!!
browse
*View contains previous record.
When we are doing the same in VFP8 we don't have any problems with REQUERY - it returns 1 and view has a new record.
Any thoughts will be helpful.
Thanks,
Andrei