In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
DBBrowse: GridEdit() problem
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
DBBrowse: GridEdit() problem
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)Â