Page 1 of 1

How to overload a method in browser

Posted: Wed Sep 23, 2009 8:11 pm
by apais
I need to overload this function in a dbf browser:

Function _BrowseDelete ( ControlName , ParentForm , z )

Does anybody know how to do that ?

TIA

Angel Pais

Re: How to overload a method in browser

Posted: Thu Sep 24, 2009 12:58 am
by luisvasquezcl
Estimado Angel,
¿cual es tu idea? ... posiblemente la solución pueda ir por otro camino.
saludos,
Luis Vasquez.

Re: How to overload a method in browser

Posted: Thu Sep 24, 2009 4:26 am
by apais
hola Luis

Yo uso un sistema de reciclado de registros, para el cual la operacion dbdelete() no es suficiente.
Asi que necesito sustituir el delete del comando BROWSE por el mio propio. Llamémosle BorrarRegistro().
Se entendió?

Gracias por tu tiempo
Angel

Re: How to overload a method in browser

Posted: Thu Sep 24, 2009 12:51 pm
by Roberto Lopez
apais wrote:hola Luis

Yo uso un sistema de reciclado de registros, para el cual la operacion dbdelete() no es suficiente.
Asi que necesito sustituir el delete del comando BROWSE por el mio propio. Llamémosle BorrarRegistro().
Se entendió?

Gracias por tu tiempo
Angel
HMG does not support method overloading directly, but there is lots of things to try.

IE: You could attempt to create a semi-oop translate directive to replace the standard one, scoping some prg's only.

Regards,

Roberto.

Re: How to overload a method in browser

Posted: Thu Sep 24, 2009 7:58 pm
by apais
Thank you Roberto

Re: How to overload a method in browser

Posted: Fri Sep 25, 2009 12:46 pm
by Roberto Lopez
apais wrote:Thank you Roberto
OFFTOPIC:

As far as I remember you are from Uruguay...

So, I want to congrat you because Uruguay was the first country in the world to do the complete implementation of the OLPC program (ALL school kids has now its own portable PC).

Education is the best investment that a country can do and require very generous governors, since the results will be seen only many years in the future.

A great future is waiting for Uruguay.

Regards,

Roberto.

Re: How to overload a method in browser

Posted: Fri Sep 25, 2009 1:34 pm
by apais
It's called "Plan Ceibal".
The goverment gave a laptop computer to every shool child in the country.
They also implemented a network of content producers, most of them educational software for chidren.

Thank you for the compliments =)

Angel

Re: How to overload a method in browser

Posted: Fri Sep 25, 2009 3:58 pm
by Roberto Lopez
apais wrote:It's called "Plan Ceibal".
The goverment gave a laptop computer to every shool child in the country.
They also implemented a network of content producers, most of them educational software for chidren.

Thank you for the compliments =)

Angel
In fact a feel envy (a lot :) )...

Negroponte was here promoting OLPC two years ago, but almost nothing was done (I guess that a 'pilot' plan only).

Regards,

Roberto.