FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse - EDIT_GET_LISTBOX
Posts: 82
Joined: Fri Mar 03, 2006 06:26 PM
XBrowse - EDIT_GET_LISTBOX
Posted: Sun Sep 15, 2013 04:37 PM

Hello Everyone,

Has anyone a sample that shows how to select items from a dbf when editing a cell in XBrowse? I can use arrays with EDIT_LISTBOX/EDIT_GET_LISTBOX but want to select from a file without building an array, should I try EDIT_GET_BUTTON? Also how do I put a bitmap/image on the button.

I searched fwh\samples but I didn't find anything.

TIA
David

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse - EDIT_GET_LISTBOX
Posted: Sun Sep 15, 2013 05:14 PM

Use oCol:nEditType := EDIT_BUTTON

You need to specify oCol:bEditBlock := { |nRow,nCol,oCol,nKey| MyEditFunc( nRow, nCol, oCol, nKey )

In this function you can browse the other table.
If selected return the value to be written in the browsed table.
If not selected you should return NIL

Regards



G. N. Rao.

Hyderabad, India
Posts: 82
Joined: Fri Mar 03, 2006 06:26 PM
Re: XBrowse - EDIT_GET_LISTBOX
Posted: Mon Sep 16, 2013 01:01 PM

Thank you Rao :)

Continue the discussion