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 / help variables

Author
Message
Waltzy
18
Years of Service
User Offline
Joined: 1st Jun 2006
Location: UK Cornwall
Posted: 25th Jun 2006 03:45
ok, here we go, bit of a noob question im sure, but in DBC is there any way to naming variables based on user input,

ie

a+(userinput$) = a+(userinput$) + 1
print + a+(userinput$)

so the name of the variable would be defined while the programme was running,

any help would be grate, pity me

ty waltzy

Current Project: Chavinator | Build: 1.5.2
http://www.deviantart.com/view/35089061/
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 25th Jun 2006 06:48
Nope, there's no way to do that. Very few languages actually have that ability, as it's not a good coding style in theory.

What you want to look into is a data type called an array. An array is a variable that can hold multiple values, or "cells." I believe that DBC comes with a data type tutorial page that explains how to use them.

Waltzy
18
Years of Service
User Offline
Joined: 1st Jun 2006
Location: UK Cornwall
Posted: 27th Jun 2006 00:49
kk cheers, will look it up XD

Current Project: Chavinator | Build: 1.5.2
http://www.deviantart.com/view/35089061/

Login to post a reply

Server time is: 2024-11-27 15:34:00
Your offset time is: 2024-11-27 15:34:00