forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


What are the limitations of VDS?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Thu Feb 20, 2003 11:32 pm    Post subject: What are the limitations of VDS? Reply with quote

Before I eventually start a large project I wonder if someone could tell the limitations that VDS scripting has?

Number of characters in a strings?
How many variables can it handle?
How many IF/ENDS?
How many labels and subroutines?
How many lines can a script have?

Hope someone can post what they know here about any known limitations.
Thanks for your time Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Feb 20, 2003 11:51 pm    Post subject: Reply with quote

VDS 3 and later....

Number of vars are 35 standard (%1 - %9, and %a - %z)
plus:
- VDS3 allows 128 user defined vars
- VDS4 allows 220 user defined vars

REPEAT/UNTIL and GOSUB (and prolly WHILE/WEND) are
limited to a maximim nesting of 9 deep (error message 10).

There are no apparent limits on:
- String length (both in vars and lists)
- IF/END nesting
- Lines in a script
- Number of labels

Windows 95 has a visible LIST limit of 32767 items (this is NOT
VDS related), but the LIST CREATE lists do not have this limit
in Windows 95. Windows 98 and later does not have this limit.

Large files (several megs) can be a nightmare - if available
memory is low, a file may not load completely into a list (and
you get no warning). However, you can use @binfile() in VDS4
and VDSINOUT.DLL with VDS3 for direct file access (straight
from the hard drive).

Hopefully someone else will post anything I missed... Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri Feb 21, 2003 12:13 am    Post subject: Reply with quote

So I can have an unlimited amount of IF/ENDS like this:
Code:
if %1
   bla bla
else
   bla
end

if %2
   bla bla
else
   bla
end

if %3
   bla bla
else
   bla
end

if %4
   bla bla
else
   bla
end


but only 9 inside like this:
Code:
if %1
   if %1
   bla bla
else
   bla
end
else
   bla
end

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 21, 2003 12:21 am    Post subject: Reply with quote

There's apparently no limit on IF/END nesting.

It's GOSUB, REPEAT/UNTIL (and prolly WHILE/WEND)
that has a limit of 9 deep.

But ya got the principle right - nesting is one within another,
within another, etc.....

BTW, each IF requires an END... Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri Feb 21, 2003 12:46 am    Post subject: Reply with quote

Thanks alot Mac.
You'll deffanently get your name mentioned in my first app I make with VDS Smile

I think I got the main basics of the language now.
But offcourse, there's a longs ways to go yet Wink

I remember reading somewhere about a limitation about IF/ENDS, and I must say that kinda got me really worried. That's why I posted this thread. But if that was to be true, I don't think VDS would be very usefull to large application development Laughing

I've been working with MMB for several years now, and also I've been doing NeoBook, PHP, AutoIt and a few other things inbetween, but so far, none of them even compares to the power I've seen that VDS is capable of Smile

Someone said that to use the vdsipp extension I had to use the freeware|1214124 something after the external command when compiling, but I have tried that without the number it works fine when compiled. Any info on this?

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 21, 2003 12:52 am    Post subject: Reply with quote

The VDSIPP.DLL (by PGWARE) doesn't require a key - I
think someone may have mentioned VDSINET (by TOMMY)
which I think does require the public key, even though it's
freeware. Doing this allows someone to release a DLL to the
public without re-writing/compiling the DLL. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri Feb 21, 2003 12:55 am    Post subject: Reply with quote

ok, thanks alot for your help. Smile

BTW, don't you EVER sleep dude?
Looks like your always in here Laughing

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Feb 21, 2003 12:57 am    Post subject: Reply with quote

LOL, I sleep occasionally... am fixin' to cut outta here
for a few hours now. Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri Feb 21, 2003 1:45 am    Post subject: Reply with quote

I just now figured out that if I highlight all the codes for the DIALOG I can edit it with the Dialog Designer. Laughing

That will make it alot easier Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2150
Location: A House

PostPosted: Fri Feb 21, 2003 3:13 am    Post subject: Reply with quote

You can just put the cursor at the begining of the "DIALOG CREATE" line,
and then press the F2 key and the dialog designer will open and you can
edit. You don't have to highlight all the code for the dialog.

-Garrett
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Fri Feb 21, 2003 3:28 am    Post subject: Reply with quote

Cool, even better.
Thanks for the tip Smile

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group