byte-one wrote:Similar to xBrowse we can use arrays ::aEditListBound and ::aEditListTxt to split visual text and the bounded text for the variable!?
#include "fivewin.ch"
#include "dbcombo.ch"
function Main()
local aMonths := {}
local n, c
local nVar := 100
local cMth
local oDlg
for n := 1 to 12
c := NToCMonth( n )
AAdd( aMonths, { Upper( Left( c, 3 ) ), c } )
next
cMth := aMonths[ 2, 1 ]
DEFINE DIALOG oDlg SIZE 400,400 PIXEL TRUEPIXEL
@ 20,20 GET nVar SIZE 100,20 PIXEL OF oDlg
@ 80,20 DBCOMBO cMth SIZE 200,600 PIXEL OF oDlg ;
ALIAS aMonths ITEMFIELD 1 LISTFIELD 2
@ 120,20 BUTTON "TEST" SIZE 60,24 PIXEL OF oDlg ACTION MsgInfo( cMth )
ACTIVATE DIALOG oDlg CENTERED
return nil
byte-one wrote:Oh, thanks! Perfect for me!
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 63 guests