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.

Bug Reports / IMAGE EXIST function does not work with DBPro 7.4

Author
Message
thedubdude
20
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 23rd Apr 2010 06:08
IMAGE Exist(1) use to work in previous versions of DBPRO but generates a compiler error in version 7.4:


tst=(0=IMAGE Exist(1))
print tst
wait key
end
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 25th Apr 2010 20:23
Your code works fine with U7.5beta11. It returns the value 1 as it should. What value do you get?
thedubdude
20
Years of Service
User Offline
Joined: 24th May 2003
Location: San Jose, Ca.
Posted: 28th Apr 2010 05:52
I got a compiler error. The program would not run. I un-installed version 7.4 because of this. I'm back to 7.3.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 29th Apr 2010 03:42
Works fine here with U7.4.

What compilation error do you get?
Todd Riggins
19
Years of Service
User Offline
Joined: 29th Oct 2004
Location: Texas, USA
Posted: 14th May 2010 12:14
Besides the compiler error, did you mean to return an opposite result from IMAGE Exist(1) as your code above does?

So, if you had the code:

If IMAGE EXIST(1)=1
` image does exist
Else
` image does not exist
Endif

You're are just pointing out that IMAGE EXIST did not work at all for you no matter how you used it?

It worked fine for me under 7.4 as I use that command for my gui work.

If you used that code above to get a positive result, 1, to indicate that your image did exist, then I can see why you program "may" have crashed. If it continued thinking a image did exist, but it really didn't, and you ran some code that needed the image to function correctly, then I can see it crashing because of that.

* Just guessing

ExoDev.Com |XBOX360 CONTROLLER LIBRARY|USE DARK GDK WITH LATEST DIRECTX| C2Q2.66, 8G RAM, GeFORCE 9800 X2, VISTA 64Bit

Login to post a reply

Server time is: 2024-04-27 02:20:21
Your offset time is: 2024-04-27 02:20:21