[Gambas-user] Dim :: Another newbie question

tobias tobiasboe1 at ...20...
Mon Sep 13 20:46:06 CEST 2010


hi,

>     Hi again,
> 
>     Local variables are declared with Dim, but, they need to be declared at top of the Sub procedure?
> 
>     Thanks
> 
> ___________________________
> Lic. Daniel Quintero Rojas
> 
> http://www.dquinter.com.mx 
> ___________________________
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

well, yes just try it out ;)
i don't know the reason, but i think, it's the same because the gambas 
predefined classes are that dynamic that you shouldn't have to allocate 
them with a dynamic value, but if you really have to do that, you may 
use this function:
Pointer = Alloc ( Size AS Integer [ , Count AS Integer ] )
(see gambas documentation)

regards,
tobi




More information about the User mailing list