[Gambas-user] Making a integer constant represent a long value

Brian G brian at westwoodsvcs.com
Fri Oct 15 20:20:41 CEST 2021


This may be a simple, perhaps silly question! 

Is there some short form way of identifying a literal number as a long? 

If I put the following into my code: 

dim a as variant = 1 ' this will always be a integer 

dim a as variant = clong(1) ' this will be a long. 

So is there a short form, like for hex value or so? 

something like: 
Dim a as variant = 1L ' this would be a long 

Maybe I just don't see this in the documentation? 

"Failure is the key to success; 
each mistake teaches us something" .. Morihei Ueshiba 
Brian G 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211015/f22e0c86/attachment.htm>


More information about the User mailing list