[Gambas-user] (Gambas-)Variables in WebPages

T Lee Davidson t.lee.davidson at gmail.com
Thu Oct 27 03:51:27 CEST 2022


On 10/26/22 13:51, Hans Lehmann wrote:
> Hello,
> 
> the solution is to define a variable in the Main.class and initialise it with the intended values:
> 
> ' Gambas class file
>    Public SiteList As String[] = ["Home", "Environment", "DBReport", "Multimedia", "Form", ... , "FPlotter", "Imprint"]
> 
> In another webpage - here IncNavigation.webpage - you can then use
> 
>    aSiteList = Main.SiteList
> 
> and use the values of the array aSiteList in the navigation:

Good work, Hans. That is a nice, simple solution that you worked out.


-- 
Lee



More information about the User mailing list