Quantcast

Question about webForm object

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Question about webForm object

Yahoo
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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...