Página 1 de 1

IDE problem with calcFields

Publicado: Mié Oct 26, 2005 12:01 pm
por Ingo
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

IDE problem with calcFields

Publicado: Mié Oct 26, 2005 12:09 pm
por Ingo
When the DataSet will be opened by the OnInitialize-event and not in the IDE
then it works.
Regards
Ingo