07-20-2003, 05:27 AM
I am a newbie
I would like to know more alot more about interger, string, dim, long, () and just all the diffrent stuff
anything would be a big help thanks
07-20-2003, 05:33 AM
You should look in your copy of MSDN and/or buy yourself a book. :)
07-20-2003, 05:34 AM
I have a book but still i just wanted you guys to clear up what each of them are too see if i have it right and also my MSDN libary doesnt work for some reason
07-20-2003, 05:35 AM
well those are different data types, while DIM is the keyword used for declaring the variables.
() are used when declaring a dynamic array.
Also, one can use ReDim, to re declare a dynamic array at runtime, and ReDim Preserve, to preserve its contencts
take a look
Dim TempArray() as string
Dim Cnt as Integer
Redim TempArray(1 to 5) 'Declare an array from 1 to 5
TempArray(1) = "Testing" 'set pos 1 to testing
Debug.Print TempArray(1) 'print its value
Redim TempArray(1 to 10) 'redimension it
Debug.Print TempArray(1) 'its now empty
TempArray(1) = "Testing" 'enter testing again
ReDim Preserve TempArray(1 to 10) 'redimension and preserve
Debug.Print TempArray(1) 'its still there
hope its some help. I recommend you get a tutorial or somethings. This forum is a priceless resource for learning
07-20-2003, 05:41 AM
Integer holds integers (about +/- 30000)
Long holds big integers (2 billion and up)
String holds text.
Dim defines a variable (Dim X As String).
() could mean anything, but is probably used for dynamic arrays, or subroutines/functions with no arguments.
07-20-2003, 05:42 AM
ok thanks both of you i have learnt alittle more i hope to make a program soon
07-20-2003, 06:41 AM
If you have a legal copy of VB6, i'd suggest contacting microsoft for support, so you can get MSDN to work. Its a great help.
Otherwise, its online as well. www.msdn.com