[Gambas-user] Question about webForm object

Yahoo olivier.cruilles at ...614...
Mon May 8 16:05:33 CEST 2017


Benoit,

I’m playing with webForm object for a new project and I try to render a FormWeb over a module ‘Main’ executed as startup rather than define the FormWeb as default startup object.

Example:

Module Main
' Gambas module file

Public Sub Main()

  ‘ Some functions executed here
  ‘ before Render the FormWeb

  ‘ == > Ex: ModTrans.Creation_List_Langue()

  ‘ Render the FormWeb
  FormWebMain.Render()

End


It works using Main module but the render is not exactly the same than when the FormWeb is defined as default startup.
For example, the contraints in the web page are not applied using Main module but work fine when FormWeb start directly.

So, is it possible to render a FormWeb using .Render() property or it’s a bad idea ?

Thank you for the answer.

— 
Olivier Cruilles




More information about the User mailing list