[Gambas-user] static ? in variables

Tobias Boege taboege at ...626...
Fri Jun 16 12:38:50 CEST 2017


On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote:
> tobias..now making a library  in the ide, the class that not have the
> "create static" now not permits instanciate the class
> 
> i only put a variable static, rest of class not have create static
> 
> Export
> 
> Private dblocal As String = "file1.txt"
> Static Public status As Integer = 0
> 
> now the class "dbcontext" said cannot be instanciate, i do not have
> the CREATE PRIVATE declaration inside it!
> 

Can you give a full project? The attached project contains everything
you said about your class, and it works. It is instantiable. Is the
*error message* really that the class cannot be instantiated or is
there another error which just prevents objects from being created,
e.g. you use the "status" variable in the _new method?

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-0.0.1.tar.gz
Type: application/octet-stream
Size: 11370 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20170616/37c0f649/attachment.obj>


More information about the User mailing list