Hello
I have a xBrowse with a ADO table , if I press the key ' ( example I seek TEST' )
The problem is in ::oRs:Find( cExpr, 0, 1, 1 )
where cExpr --> DESCRI LIKE 'TEST'*'
Regards Maurizio
www.nipeservice.com
Hello
I have a xBrowse with a ADO table , if I press the key ' ( example I seek TEST' )
The problem is in ::oRs:Find( cExpr, 0, 1, 1 )
where cExpr --> DESCRI LIKE 'TEST'*'
Regards Maurizio
do case
case cType == 'C'
if ::lSeekWild do case
case cType == 'C'
uSeek := StrTran( uSeek, "'", "''" ) // inserted
if ::lSeekWildThanks ,
it works perfectly
Maurizio
Maurizio wrote:Thanks ,
it works perfectly![]()
Maurizio
Hello Rao
another question .
I have a xBrowse with a ADO Table , I need to make a new SELECT in the same browse .
Is it possible without closing and reopening the browse ?
Ghirardini Maurizio
Yes, thats what we intended to provide. At the same time let me confess that I did not do much testing. You can help to test and see how it works.
First assuming that the columns (fields) are identical, replace oBrw:oRs with new recordset.
oNewRs := <open a new recordset with revised SELECT statement>
oSaveRs :- oBrw:oRs
oBrw:oRs := oNewRs
oBrw:GoTop()
oBrw:Refresh()
oSaveRs:Close()
oSaveRs := nil
Please see if this works without any problems.
Thanks Rao
your example works .
This works to
oBrw:oRs := oRsNew
oBrw:GoTop()
oBrw:Refresh()
Regards MAurizio
WITH OBJECT oBrw
:lScreenUpdating := .f.
:oRs:Close()
:oRs:Source := <revised SQL statement>
:oRs:Open()
:GoTop()
:lScreenUpdating := .t.
:Refresh()
END