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.

Write method - error

Xailer professional forum in English
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

Write method - error

Mensaje por Gejza Horvath »

I have problem using WRITE method:
CLASS VemaVypHlava FROM VypisRiad
PROPERTY CisloUctu INIT SPACE(16) READ ::GetUcet() WRITE ::SetUcet(cValue)
METHOD New()
METHOD SetUcet()
METHOD GetUcet()
ENDCLASS
//---------------------------------------------------------- ------------------
METHOD SetUcet(cUcet) CLASS VemaVypHlava
* Prisposobi cislo uctu predpisanemu tvaru
cUcet := PADL(ALLTRIM(STR(VAL(cUcet))),16,"0")
::FCisloUctu := cUcet
RETURN ::FCisloUctu
//---------------------------------------------------------- ------------------
METHOD GetUcet() CLASS VemaVypHlava
RETURN ::FCisloUctu
//---------------------------------------------------------- ------------------
The usage :
oVemaHlavicka := VemaVypHlava():New()
oVemaHlavicka:CisloUctu := oVypis:CisloUctu
I get this error:
TFORM1:CREATEVEMAFROMOTP(187)
Error BASE/1005 Message not found: VEMAVYPHLAVA:_CISLOUCTU
Arguments: ()
Any idea, where is the bug?
Gejza Horvath
Responder