Browse of my ADO Class

Browse of my ADO Class

Postby JoséQuintas » Thu Sep 19, 2024 5:58 pm

Code: Select all  Expand view

   LOCAL cnSQL := ADOLocal()

   cnSQL:Execute( "SELECT * FROM " + workarea )
       @ nRow, nCol XBROWSE xControl ;
            SIZE nWidth, nHeight PIXEL ;
            OBJECT cnSQL ;
            OF xParent ;
            ON DBLCLICK gui_BrowseDblClick( xDlg, xControl, workarea, cField, @xValue )
      FOR EACH aItem IN oTbrowse
         ADD oCol TO xControl ;
            DATA { || cnSQL:Value( aItem[2] ) } ;
            HEADER aItem[1] ;
            PICTURE aItem[3]
      NEXT
      xControl:bLogicLen := { || cnSQL:RecordCount() }
      xControl:bGoTop    := { || cnSQL:MoveFirst() }
      xControl:bGoBottom := { || cnSQL:MoveLast() }
      xControl:bSkip     := { | nSkip, nOld | ADOSkipper( cnSQL, nSkip, nOld ) }
   xControl:nMoveType := 0
   xControl:CreateFromCode()
 


On browse show extra columns, and only one row.
What is wrong ?

Note:
My recordset have 6 columns, I see 9 on browse, and only one row.
same using DATASOURCE or OBJECT
JoséQuintas
 
Posts: 4
Joined: Tue Feb 09, 2021 4:20 pm

Re: Browse of my ADO Class

Postby Antonio Linares » Thu Sep 19, 2024 9:17 pm

Dear Jose,

Mr. Rao is checking it and he will answer you asap,

thank you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41858
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 70 guests

cron