Addr object

Moderators: Der Wanderer, Blackbird

Addr object

Postby tolkien » 24. April 2017, 12:23

Hello!
Following with my coding therapy I'm working again with ab3 porting some of my code from ab2.
More or less is all ok but I have a little problem.

I need de address of a bitmap object to can read its attributtes.

In ab2 I do *pb.BitMap = Addr BitMap(0) but that doesn't work in ab3 nor bb2.

I add all necessary res files but the problem persist.

Any idea what is wrong?

Thanks in advance mates.
tolkien
Newbie
 
Posts: 11
Joined: 8. October 2013, 21:24

Re: Addr object

Postby tolkien » 25. April 2017, 21:43

Well....I now understand the problem.
Simply if I write something like this It doesn't compile:

Code: Select all
bm.b = 0
*pb.BitMap = Addr BitMap(bm)


Obviously if I replace BitMap(bm) with a number in the parameter It works.
The problem is that I use it within a Statement and need to pass a parameter.
tolkien
Newbie
 
Posts: 11
Joined: 8. October 2013, 21:24

Re: Addr object

Postby Daedalus » 9. May 2017, 20:25

Hmmm, that is a little strange, but it can be worked around with an extra line:

Code: Select all
bm.b = 0
MyAddr.l = Addr BitMap(bm)
*pb.BitMap = MyAddr
User avatar
Daedalus
Newbie
 
Posts: 41
Joined: 12. May 2014, 23:11
Location: Glasgow, Scotland

Re: Addr object

Postby tolkien » 9. May 2017, 20:45

Hey! That worked perfectly.
Thanks Daedalus. Didn't now what to do.
tolkien
Newbie
 
Posts: 11
Joined: 8. October 2013, 21:24


Return to Questions & Answers

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron