Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Addr object
#1
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.
Zitieren
#2
Well....I now understand the problem.
Simply if I write something like this It doesn't compile:

Code:
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.
Zitieren
#3
Hmmm, that is a little strange, but it can be worked around with an extra line:

Code:
bm.b = 0
MyAddr.l = Addr BitMap(bm)
*pb.BitMap = MyAddr
Zitieren
#4
Hey! That worked perfectly.
Thanks Daedalus. Didn't now what to do.
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste