Subject |
Re: if-endif statement disappear when running the from |
From |
Bruce Beacham <bbeacham@no_plm_lowman.co.uk> |
Date |
Sun, 21 May 2017 22:31:29 +0100 |
Newsgroups |
dbase.getting-started |
On 21/05/2017 07:41, Akshat Kapoor wrote:
>> if this.prijsora.value<>0
>> this.pagototal.value=25
>> endif
>
> I will explain a little further Ken's statment.
> This if endif will not be executed in any case even if it remains in the
> .wfm file.
I disagree. I have constructor code which contains all manner of
statements, usually for non-visual components. I can get away with it
because I do not use the designers.
But the one statement that is not allowed in constructor code is
RETURN
Bruce Beacham
>
> using the do ????.wfm will not remove it but opening it in the form
> designer will as it does not recognise the code.
>
> When do you want this if / endif to be executed.
> In the current position it will never be executed.
>
> You must make it a part of a function to retain it in the wfm file.
> You must call it using a event to execute it.
>
> I had also faced this problem when designing my first form.
> Regards
> Akshat
>
>
|
|