Page 1 of 1

how to access the members of a Range?

PostPosted: Sat Dec 11, 2010 5:22 pm
by udo.killermann
Board,

I need to access the start and length of a range. I don't find a way to do so.

Thanks for your answers
Udo

Re: how to access the members of a Range?

PostPosted: Wed Dec 15, 2010 12:30 pm
by berndnoetscher
udo.killermann wrote:Board,

I need to access the start and length of a range. I don't find a way to do so.

Thanks for your answers
Udo


Sorry, there is an regression bug related to Range, Rect... It does not work anymore. Will fix it the next days. Please be patient.

Supposed working code (used to work in earlier versions):
Code: Select all
Dim r As Range
r.Location = 2
r.Length = 33

Re: how to access the members of a Range?

PostPosted: Wed Dec 15, 2010 2:09 pm
by berndnoetscher
Find out what's wrong.
If you need to use a Range variable, you must explicitly assign an object to it (the auto-object init is not done - it is a bug).

This works:
Code: Select all
Dim r As Range = Range(0, 0)
r.Location = 2
r.Length = 33

Re: how to access the members of a Range?

PostPosted: Sat Jan 29, 2011 11:04 am
by udo.killermann
Bernd,

which properties have you implemented for elements of the other built-in types (e.g. Rect, Size, Point)?

Regards
Udo