Arrays

Use this board to post your code snippets - tips and tricks
4 posts Page 1 of 1
Contributors
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Arrays
Cheatmasterbw
This is a simple Quick Snip on how to use arrays.
1-2-3D.png
Declaring Arrays:
Code: Select all
Dim Text as String 'No Array
Dim Text(#) as string '1D Array
Dim Text(#, #) as string '2D Array
Dim Text(#, #, #) as string '3D Array
Reading Arrays
Code: Select all
me.text = Text(1, 2) 'reading text from a 2D array
Writing Arrays
Code: Select all
Text(0) = "A"
Text(1) = "B"
Text(2) = "C"

'-OR-

Text = {"A", "B", "C"}
Please tell me what i can add if you would like more info on arrays!

+Rep if this is good!
You do not have the required permissions to view the files attached to this post.
http://www.megaapps.tk/
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Arrays
MrAksel
Thanks man! I needed this! But you can add all the shared functions in the Array class, like Array.Reverse(Array As System.Array), and say what they do!
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Cheatmasterbw
Coding God
Coding God
Posts: 1506
Joined: Fri Jan 01, 2010 2:30 pm

Re: Arrays
Cheatmasterbw
So if the array starts as {1, 2, 3, 4}, the program will change it to {4, 3, 2, 1}?
http://www.megaapps.tk/
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Arrays
MrAksel
Yes it would, there are many of these functions you could add :)
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
4 posts Page 1 of 1
Return to “Quick Snips”