[Gambas-user] gambas server is work. Other questions...

Benoît Minisini gambas at ...1...
Mon May 4 20:16:16 CEST 2009


> Tks,
> My gambas server work now.
>
> Questions:
>
> Is possible multiplies comands in string?
>    Ex: <% DIM a AS Integer
>                 DIM c AS String %>
>

Yes.

The three rules are :

The web page is transformed into a Gambas function.

All HTML is replaced by a PRINT instruction.

The Gambas code between <% ... %> is put "as is" inside the function.

<%= XXX %> is replaced by a the expression Str(HTML(XXXX))

> In other message Benoit say for use the mysql <% USE "gb.db" %>. Is
> Possible for all componentes of gambas?
>     Ex: <% USE "gb.Form" %>
>            <% DIM myObject AS TextBox %>
>            <% myObject = NEW TextBox AS "MyTxtBx" %>
>            <% myObject.X = 10 %>
>            <% MyObject.Y = 10 %>
>            <% myObject.Text = "Hellho Word!!!" %>
>            <% myObject.Show() %>
>
> Reguards,
>
> Souza, Wellington
>
> PS: My english is not very well.

All components can be used. But using "gb.qt" inside a CGI script would lead 
to an error, as the QT library won't be able to connect to an X11 display.

Regards,

-- 
Benoît




More information about the User mailing list