Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I don't still really know when to use place my "init" code when loading a form or formSet, either in the init() or load() methods. Can anyone give me some advice on how and when to use one or the other?
>>
>>Thanks,
>>Javier.
>If you need to create cursor/table/view via an sql that will be used in the form/formset as part of the controlsource for any controls it will need to be done in the load so that when the controls are loaded/inited they will have a vaild source.
>
>Parameters passed to the form must be passed with a parameter statement to the init method.
>
>Other wise they are interchangeable.
>
>HTH
I think that parameters it a good reason to
Rock
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement