save array [modified]
-
i am just wondering if anyone know(or have links) of a way to save a array inside the application code?
If at first you don't succeed redefine success J.Hardy
modified on Wednesday, March 25, 2009 9:52 PM
-
i am just wondering if anyone know(or have links) of a way to save a array inside the application code?
If at first you don't succeed redefine success J.Hardy
modified on Wednesday, March 25, 2009 9:52 PM
Dim p(3) As Point 'create an array of 4 points (1-3 and 0)
p(0) = New Point(640, 480) 'assign values to the points
p(1) = New Point(800, 600)
p(2) = New Point(1280, 748)
p(3) = New Point(769, 999)
Dim r As New String("") 'create a blank string
For Each ipoint As Point In p 'loop through the points
r &= "Point is located at: " & ipoint.ToString & vbNewLine 'write a string about the point
Next
MessageBox.Show(r) 'display the string with the infoHope it helps! :)
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
-
Dim p(3) As Point 'create an array of 4 points (1-3 and 0)
p(0) = New Point(640, 480) 'assign values to the points
p(1) = New Point(800, 600)
p(2) = New Point(1280, 748)
p(3) = New Point(769, 999)
Dim r As New String("") 'create a blank string
For Each ipoint As Point In p 'loop through the points
r &= "Point is located at: " & ipoint.ToString & vbNewLine 'write a string about the point
Next
MessageBox.Show(r) 'display the string with the infoHope it helps! :)
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
sorry allow me to explain better, when i publish my application to a exe i need to store a array inside the exe(this will make the application grow in size), so next time when i open it the contents of the array will be there
If at first you don't succeed Redefine success J.Hardy
-
sorry allow me to explain better, when i publish my application to a exe i need to store a array inside the exe(this will make the application grow in size), so next time when i open it the contents of the array will be there
If at first you don't succeed Redefine success J.Hardy
You don't save data in your exe, you save it in an external file (for example app.config or as user settings) and load it in - unless you are talking about an hardcoded set of values, in which case the code to populate the array will be in the exe anyway.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
-
You don't save data in your exe, you save it in an external file (for example app.config or as user settings) and load it in - unless you are talking about an hardcoded set of values, in which case the code to populate the array will be in the exe anyway.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP
dam, oh well, thanks anyway
If at first you don't succeed Redefine success J.Hardy