Hi,
there is a problem with xbrowse when I change the array values.
Pls. take a look at this self-contained sample that show the problem.
Simply press the button "Change values" and you will see that the data remains unchanged. With FWH May 2008 it runs fine.
Any ideas ?
---------------------
#include "FiveWin.ch"
#include "xbrowse.ch"
function Main()
local aNames, oBrw, oBtn, oDlg
aNames:=GetData()
DEFINE dialog oDlg TITLE "xBrowse tests" FROM 5,5 TO 40,40
@1,1 XBROWSE oBrw ARRAY aNames of oDlg
ADD COLUMN TO XBROWSE oBrw DATA oBrw:nArrayAt();
HEADER "Num" SIZE 60 RIGHT
ADD COLUMN TO XBROWSE oBrw DATA ARRAY ELEM 1;
HEADER "Name" SIZE 80
ADD COLUMN TO XBROWSE oBrw DATA ARRAY ELEM 2;
HEADER "Floor" SIZE 80
ADD COLUMN TO XBROWSE oBrw DATA ARRAY ELEM 3;
HEADER "House" SIZE 80 RIGHT
oBrw:CreateFromCode()
@10,1 button "Change value" of odlg;
ACTION (aNames:=GetData1(), oBrw:SetArray(aNames),oBrw:Refresh())
ACTIVATE dialog oDlg
function GetData()
local aNames
aNames:=array(0,4)
aadd(aNames,{"Marc1","1th Floor","1Queens "})
aadd(aNames,{"Marc2","3th Floor","2Queens House"})
aadd(aNames,{"Marc3","2th Floor","3Queens House"})
aadd(aNames,{"Marc4","0th Floor","4Queens House"})
return(aNames)
function GetData1()
local aNames
aNames:=array(0,4)
aadd(aNames,{"Luc1","1th Floor","1Queens "})
aadd(aNames,{"Luc2","3th Floor","2Queens House"})
aadd(aNames,{"Luc3","2th Floor","3Queens House"})
aadd(aNames,{"Luc4","0th Floor","4Queens House"})
return(aNames)