| Subject |
Re: modal form |
| From |
Mervyn Bick <invalid@invalid.invalid> |
| Date |
Thu, 20 Aug 2020 16:36:44 +0200 |
| Newsgroups |
dbase.getting-started |
On 2020-08-20 11:18, Mervyn Bick wrote:
> If you don't use the :: scope resolution operator dBASE will execute the
> named method (i.e a function) within the calling function.
>
> function readModal
> //your own code
> return readModal()
>
> effectively means the function is trying to execute itself in a never
> ending loop hence the error message.
Oops. The code will give an error but that's not the correct reason.
I'm afraid the old mind managed to slip into neutral for a while. :-(
The readModal() after the return will try to execute either a function
outside the form's class definition i.e below the endclass statement or
in a procedure file that has been activated or readModal.prg in the
working directory.
The error message is a bit misleading as dBASE is actually looking for
code to execute rather a missing parameter.
Mervyn.
|
|