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 Discussion / Variables in File Strings

Author
Message
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 25th Dec 2003 20:22
Is there any way of having a variable or t (as in ===> for t = 1 ....) in a load command?

Something like:



Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 25th Dec 2003 20:39
Or, is there any way of adding two strings together? Like:



Trowbee
22
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 25th Dec 2003 20:41
Yes to both

1)
load image "image"+str$(b)+".bmp",1

2)
new$=first$+second$
Chris K
21
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 25th Dec 2003 20:49 Edited at: 22nd Jul 2008 11:44
Thanks a lot.

-= Out here in the fields, I fight for my meals =-

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-07 03:02:31
Your offset time is: 2025-06-07 03:02:31