realbasic-nug
[Top] [All Lists]

Re: Ubound on structure element

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Ubound on structure element
From: Severin Swensen <severin at benevian dot com>
Date: Thu, 29 Jun 2006 21:09:17 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <FF9C7E40-45E4-42CA-95FB-674303B07F8F at benevian dot com> <49841 dot 17 dot 203 dot 27 dot 171 dot 1151614675 dot squirrel at xmail dot realsoftware dot com>
On Jun 29, 2006, at 3:57 PM, mars at realsoftware dot com wrote:

It seems that Ubound has problems with elements of a structure is
this a bug or am I somehow using incorrect syntax

The Ubound operator doesn't work on structure field arrays. They are not like normal arrays; they cannot be resized, so they always have whatever
size you defined for them.

I suppose one could argue that Ubound should work anyway, and would be a
more-descriptive way to refer to the size of the array, so perhaps we
should implement this.

Mars Saxman
REAL Software

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Alternatively or in conjunction you might choose to provide the ability to use constants when specifying the size of an array.

--
Sincerely,
Severin Swensen
Benevian, Inc.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>