Hello,
to use existing dbf's I'm trying to work with calculated fields.
For example I have a field named "GESETZ" - the calcField should be
"ANSIGESETZ" showing in the TDBBrowse and being editable, therefore I'm
using the OnSetValue-event.
METHOD DataOpen( oSender ) CLASS GesList
WITH OBJECT
oSender:AddCalcField("ANSIGESETZ",{|o|OEMTOANSI(o:oDataSet:GESETZ)})
:OnSetValue:={|o,v|::SaveGesetz(o:oDataSet,v)}
END
RETURN Nil
METHOD SaveGesetz(oDataSet,cText) CLASS GesList
oDataSet:GESETZ:=ANSITOOEM(cText)
::oBrw:RefreshCurrent()
RETURN NIL
After calling the application from the Ide and returning to the IDE I can
not change to the form.
The error message appears:
TDBBROWSE:DATATEXT(244)
Fehler BASE/1004 Class: 'CHARACTER' has no exported method: VALUE
Argumente: ()
The IDE can not handle the calcField in the Browse-control.
Regards
Ingo
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.
IDE problem with calcFields
IDE problem with calcFields
When the DataSet will be opened by the OnInitialize-event and not in the IDE
then it works.
Regards
Ingo
then it works.
Regards
Ingo