Qbasicnews.com

Full Version: quirk?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
defint a-z

dim c(1 to 10)

print UBOUND(c)

shouldn't that work? but it must be 'dim c(1 to 10) as integer' to work.
Just a guess:
Shouldn't it be UBOUND(c()) if anything?
That works on version 0.11, probably some var suffix bug on older versions, new version will be released soon.

() can't be used with LBOUND/UBOUND, QB's quirk..
so UBOUND© will work on ver. 0.11?

I were just basing my guess on about something I've read about
passing arrays to subs/functions in qb...