View previous topic :: View next topic |
Author |
Message |
jwfv Valued Contributor
Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Fri Feb 04, 2005 5:00 pm Post subject: More variables |
|
|
I'm almost embarrassed to put this as a wish list item. I am sure I should be better at maintaining/reusing variable names, but ....
Would it be difficult to increase the number of allowed variables in a VDS script? Would it affect performance?
In my larger scripts, I often use variables to "carry around" the values of database fields that I have read from disk. ( %%Table1Name equals Table1->Name, for instance.) With several tables and lots of fields, I overlap sometimes. And sometimes I will need one record's info in one part of the program while another record in the same table is needed in another section.
Of course, there are lots of workarounds for this, but I thought I would ask about the possibility of increasing the number of variables allowed. _________________ Joe Floyd |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 04, 2005 5:28 pm Post subject: |
|
|
I was wondering when someone was going to ask this. It's something that needs to be looked at. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Estas Contributor
Joined: 31 Jan 2004 Posts: 66 Location: Germany
|
Posted: Tue Jul 26, 2005 6:18 pm Post subject: More Variables needed in VDS 6 |
|
|
Hi,
yes, I second the idea of more variables. Especially for larger projects, 250 variables seem not enough, since VDS has become much more than a basic script language. In order to develop full blown windows applications, which, in my point of view, VDS is capable of (within certain limits), more variables are needed.
Greetings,
Mike |
|
Back to top |
|
|
webdaddy Contributor
Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Sat Nov 12, 2005 7:52 am Post subject: Intersting Thoughts |
|
|
I sometimes when I start a program in VDS list out all the variables that im gonna need on a sheet of paper and keep track of them this way. I have certain ones that are reuseable and permanant ones, ones that are static, etc. By using a methodology from the start I have not run out of them yet. My largest "program" script was nearly 19000 lines all in VDS and 240 variables. I had a little room should I want to change the script in the future.
I dont know if I really explained that well but basically I just logically write it all out first so I know which variables can and cant be reused in different sections of the program. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
Back to top |
|
|
|