Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
SizeOf doesn't work on function return types

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 29 December 2005, 0:41 AM    Post subject: SizeOf doesn't work on function return types Reply with quote

This causes a compile error 'Error: "SizeOf", parameter 1 must be a variable, array or data type name'
Code:
Function GetSize() As Byte
   Debug.Print CStr(SizeOf(GetSize))
End Function
Added after original post - I found that this code doesn't compile either:
Code:
Dim i as Integer
Dim ab(1 to 2) as Byte alias i
Debug.Print CStr(SizeOf(ab))
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 30 December 2005, 3:40 AM    Post subject: Reply with quote

This has been fixed in the current development version and is being tested. There will probably be a new release of the compiler within the next two weeks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group