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 / can you increase a text array?

Author
Message
Blazer
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 19th Feb 2003 02:25
I want to use a text array to count the number of items in my game. is there a way to increase them? thx
As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
heartbone
22
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 19th Feb 2003 04:58
Anything Dimmed can be Undimmed.

So if A$() was 10 and you needed 20 you could do

(pseudo-code)

Dim B$(10)
B$(*)= A$(*)
Undim A$()
Dim A$(20)
A$(*)= B$(*)
Undim B$()

The more you see, the more you know.
The more you know, the more you see.

Login to post a reply

Server time is: 2025-08-08 11:46:33
Your offset time is: 2025-08-08 11:46:33