DBBrowse: GridEdit() problem
Publicado: Vie Feb 09, 2007 9:48 am
Xailers,
I have a DBBrowse with 3 DataFieldColumns.
One of them contents the numeric datafield ("A0") by the range
from 0 to 3.
In the Browsecolumn this numeric field will be shown as
an item of the array "aTyp" which contents 4 strings.
Column properties are assigned as:
nEditType = beListBox
aEditListText = aTyp //the array with the items
aEditListBound = aTyp
After changing to the editmode of the DBBrowse and finalizing it the error
occurs:
---------------- Information über die interne Fehlerbehandlung ----------------
Untersystemaufruf: BASE
Systemcode: 1070
Default-Status: .F.
Beschreibung: Argument error
Operation: ==
Argumente: [ 1] = Typ: C Wert: Urteil [ 2] = Typ: N Wert: 3
Involvierte Dateien:
DOS-Fehlercode: 0
Aufgerufene Programmteile:
TDATAFIELD:VARPUT (118)
TGRIDEDIT:UPDATEDATA (76)
(b)TDBFDATASET:SAVE (984)
AEVAL (0)
TDBFDATASET:SAVE (984)
TDBFDATASET:UPDATE (700)
TDBBRWCOLUMN:POSTEDIT (842)
TDBBROWSE:CANCELEDIT (2585)
TGRIDEDIT:WMKILLFOCUS (302)
SETFOCUS (0)
TDBBROWSE:SETFOCUS (836)
TBROWSE:WMLBUTTONDOWN (1857)
(b)XDBBROWSE:XDBBROWSE (76)
TDBBROWSE:WMLBUTTONDOWN (0)
RUNFORM (0)
TAPPLICATION:RUN (208)
MAIN (16)
What is wrong with the code (see attached sample)?
Curious is if the column with the numeric datafield is
the single column of the browse than the code works perfectly.
Any idea to make it working with more columns?
Regards
Ingo
--
Attached files testbrowse.zip (2.6 KB)Â