nageswaragunupudi wrote:Even before that, please do this small test.
aRows := RsGetRows( oRs2 )
? ValType( aRows ), Empty( aRows )
XBROWSER aRows
Ha ocurrido algo muy interesante.
Coloqu茅 el c贸digo de arriba en el prg.
No me di cuenta y dej茅 tambi茅n la l铆nea xBrowser( oRs2 )
Por lo que qued贸 as铆:
oRs2 := FW_OpenRecordSet( oCn2, cSql2 )
聽 聽 聽
聽 聽 聽oRs2:MoveFirst()
聽 聽 聽
聽 聽 聽aRows := RsGetRows( oRs2 )
聽 聽 聽? ValType( aRows ), Empty( aRows )
聽 聽 聽XBROWSER aRows
聽 聽 聽
聽 聽 聽xBrowser oRs2
聽 聽 聽
聽 聽 聽oRs2:Close()
Curiosamente el resultado fu茅 que era posible ver en el xbrowser tanto el array aRows como el Rowset oRs2.
Incluso, este c贸digo a continuaci贸n permite que se vea el Rowset:
聽 聽 聽oRs2 := FW_OpenRecordSet( oCn2, cSql2 )
聽 聽 聽oRs2:MoveFirst()
聽 聽 聽aRows := RsGetRows( oRs2 )
聽 聽 聽xBrowser oRs2
聽 聽 聽oRs2:Close()
La verdad que qued茅 sorprendido, pero lo he puesto as铆 por ahora, porque funciona.