Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: WWXML, WWFILETIMER

$
0
0
Re: WWXML, WWFILETIMER
FoxInCloud
Re: WWXML, WWFILETIMER
02/16/2012
05:23:50 AM
3FN0BKL76 Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
But then it would crash because parameters are normally used in expressions and will have wrong types at first call (all logical .F.). So should I provide dummy parameters in all Init() in case pcount()?

Oops, certainly not, your form would not instantiate ...

And RETURN .F. if PCOUNT()=0?

In Fact .Init() is executed twice:
- first time without parameters
- second time with parameters

Your Form.Init(parms) method should test for Pcount() > 0:

LPARAMETERS parms Dodefault() IF Pcount() > 0 <your init code> ENDIF


Viewing all articles
Browse latest Browse all 10393

Trending Articles