Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Count of Bitmaps

Author
Message
walkman
19
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 27th Feb 2005 10:22
How can the program return the number of bitmaps that currently exist in the program?
FakeBlood
21
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 27th Feb 2005 15:41 Edited at: 27th Feb 2005 15:42
Don't think there's a command to my knowledge but I may be wrong. If you numbered your bitmaps in order starting at one you could do a for next loop to check. Not sure if this way would be helpful, but worth a shot I guess. This would check for up to 100 bitmaps.

walkman
19
Years of Service
User Offline
Joined: 27th Feb 2005
Location:
Posted: 1st Mar 2005 00:59
Thanks for your help. I didn't see that Bitmap Exist command. What I ended up doing was to write a function that creates the bitmap and increments a global variable at the same time. This way I only have to check the variable to see how many bitmaps I have created over the course of the program. I would have liked to get rid of that global variable and just check something in dark basic.

Login to post a reply

Server time is: 2024-09-23 13:25:36
Your offset time is: 2024-09-23 13:25:36