how to access the members of a Range?

Coding Questions, IDE related or anything else

how to access the members of a Range?

Postby udo.killermann » Sat Dec 11, 2010 5:22 pm

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
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: how to access the members of a Range?

Postby berndnoetscher » Wed Dec 15, 2010 12:30 pm

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
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am

Re: how to access the members of a Range?

Postby berndnoetscher » Wed Dec 15, 2010 2:09 pm

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
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am

Re: how to access the members of a Range?

Postby udo.killermann » Sat Jan 29, 2011 11:04 am

Bernd,

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

Regards
Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany


Return to Objective-Basic (Xcode 3)

Who is online

Users browsing this forum: No registered users and 1 guest

cron