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.

DarkBASIC Professional Discussion / problem with variables combination

Author
Message
Freddix
AGK Developer
17
Years of Service
User Offline
Joined: 19th Sep 2002
Location: France
Posted: 23rd Sep 2002 19:54
when I use :for img=1 to 10
load image _path$+_textures$(img),img
next img

under DBv1 it work , under DBPro it crashed !

When I use :
for img=1 to 10
finalimg$=_path$+_textures$(img)
load image finalimg$,img
next img

Under DBpro , it work.

If think there are problem with DBPro to calculate combination of values !
I think that could be a major improvement to resolve that at hit grantly help with migration of DBv1 program 2 DBPro !
deadlyduck
17
Years of Service
User Offline
Joined: 19th Sep 2002
Location: United Kingdom
Posted: 23rd Sep 2002 20:13
I have noticed that DBPro dosn't seem to like String Arrays when doing most commands

read a$(i)
Find File(a$(i))
etc

seem to crash, my advice is to make a temp variable always, #If you use temp$ all the time you won't be wasting system resources and hopefully It will cure some of thouse crashes

Login to post a reply

Server time is: 2019-11-17 14:51:20
Your offset time is: 2019-11-17 14:51:20