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.

SaveToArray problem

Xailer professional forum in English
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

SaveToArray problem

Mensaje por g.s.rogers »

When I try to save an array to aItems of a combobox control using this:
// look up codes for DMO's filtered by county civil module
::oDbfDataSetDMOCodes:Filter("CADOCUMT->MODULE == 'CCIVIL '")
oSender:aItems := ::oDbfDataSetDMOCodes:SaveToArray(
{"DOCUCODE","DOCUDESC"} )
oSender:aItemsBound := ::oDbfDataSetDMOCodes:SaveToArray(
{"DOCUCODE","DOCUDESC"} )
I get this error:
Subsystem Call: BASE
System Code: 1101
Default Status: .F.
Description: Argument error
Operation: LTRIM
Arguments: [ 1] = Type: A Val:
Involved File:
Dos Error Code: 0
I have the nDataType of the control set to dtBOUND and the nStyle set to
cDROPDOWNLIST. The combobox works with a single value, but not with the
above array. What am I doing wrong?
TIA,
Gary
Responder