Hello All Guru
I am executing following code and getting only 1 row instead of 2k+ rows. Not sure what Iam doing wrong
oRs := AdoDB("SELECT xs_rcode AS ID ,xs_rname AS NAME from xs_receiver")
oTBrowse := TBrowse():new( 2,2, MaxRow()-2, MaxCol()-2 )
oTBrowse:headSep := "-"
oTBrowse:colorSpec := "N/BG,W+/R"
For n := 1 TO oRs:oRs:Fields:Count()
oCol := TBColumnNew( oRs:FieldName(n), &("{|| IF( oRs:RecCount() = 0, '', oRs:FieldGet("+STR(n)+")) }") )
oTBrowse:AddColumn( oCol )
Next n
DO WHILE .T.
oTBrowse:forceStable()
nKey := Inkey(0)
IF oTBrowse:applyKey( nKey ) == TBR_EXIT
EXIT
ENDIF
ENDDO
Please guide me.
Thank you very much for your help in advance.
Regards
Hemant