COMBOBOX refresh

COMBOBOX refresh

Postby remecd » Fri Apr 28, 2006 10:26 am

How can I Refresh() Combobox with function Inv_Nasta2()

Tnx, Darjo

Code: Select all  Expand view  RUN
#include "FWCE.ch"

FUNCTION Main()
PRIVATE ocbNah

   arrNahaja:={'1a','1b','1c'}
   STORE 1 TO cIzbPe,cIzbNah
   
   DEFINE WINDOW owInv
   @  93,0 SAY 'Main:' PIXEL
   @ 108,0 COMBOBOX cIzbPe ITEMS {'001','002'} PIXEL SIZE 240,200 ON CHANGE Inv_Nasta2()
   @ 135,0 SAY 'Sub:' PIXEL
   @ 150,0 COMBOBOX ocbNah VAR cIzbNah ITEMS arrNahaja PIXEL SIZE 240,200
   ACTIVATE WINDOW owInv
return nil


********************************
FUNCTION Inv_Nasta2()
********************************
arrNahaja:=array(0)
arrNahaja:={'2a','2b'}
ocbNah:Refresh()   && why does it not work ???
RETURN (.t.)

remecd
 
Posts: 9
Joined: Wed Dec 14, 2005 10:09 am

Postby Antonio Linares » Fri Apr 28, 2006 11:22 am

Darjo,

********************************
FUNCTION Inv_Nasta2()
********************************
arrNahaja:=array(0)
arrNahaja:={'2a','2b'}
ocb:SetItems( arrNahaja )
ocbNah:Refresh()
RETURN (.t.)
regards, saludos

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


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 6 guests