Arrays
Use this board to post your code snippets - tips and tricks
4 posts
Page 1 of 1
This is a simple Quick Snip on how to use arrays.
Declaring Arrays:
+Rep if this is good!
Declaring Arrays:
Code: Select all
Reading Arrays
Dim Text as String 'No Array
Dim Text(#) as string '1D Array
Dim Text(#, #) as string '2D Array
Dim Text(#, #, #) as string '3D Array
Code: Select all
Writing Arrays
me.text = Text(1, 2) 'reading text from a 2D array
Code: Select all
Please tell me what i can add if you would like more info on arrays!Text(0) = "A"
Text(1) = "B"
Text(2) = "C"
'-OR-
Text = {"A", "B", "C"}
+Rep if this is good!
You do not have the required permissions to view the files attached to this post.
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!
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!
So if the array starts as {1, 2, 3, 4}, the program will change it to {4, 3, 2, 1}?
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!
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!
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023