[Gambas-devel] Release of gambas 1.9.5

fabien gambasfr at ...4...
Wed Apr 6 23:36:25 CEST 2005


Le Mercredi 06 Avril 2005 22:41, Rob a écrit :
> On Wednesday 06 April 2005 16:23, fabien wrote:
> > it will be able to desing form, report, web
>
> Oh yeah, I forgot to post my Gambas form to HTML+CSS converter.  Here
> is the current version.... the HTML doesn't validate yet but it looks
> fine in Firefox, Konqueror and even Internet Exploder....  naturally
> it's in perl, but if people want to be able to export HTML from the
> IDE I can rewrite it in Gambas.
>
> Rob

i'm currently work on an idea about how to write simply a DOM html
so when i write my page.. i just do :

PRIVATE Doc AS NEW CDocument
PUBLIC SUB Main()
  Doc.Add(CText.Clone(("GAMBASFORGE FORUM"), true, true, 18, "#ff00ff"), 
"Title")
  'CArray.Clone(Border, Rows, Columns)
  Doc.Add(CArray.Clone(1, 2, 2), "Array1")
  Doc["Array1"][2].Fusion(1, 2)
  Doc["Array1"][1][1].Add(CText.Clone("HelloWord"))
  Doc.Print
END

output :
<html>
<head>
</head>
<body>
<font color="#ff00ff" size="18px"><b><i>GAMBASFORGE FORUM</i></b></font>
<Table border="1">
  <tr>
    <td colspan="2">
      HelloWord
    </td>
  </tr>
  <tr>
    <td>
    </td>
    <td>
    </td>
  </tr>
</Table>
</body>
</html>


The advantage is i can join and change every part of my page before the 
printing
so i can doing a template and then fill the data

What about that ?

Fabien





More information about the Devel mailing list