Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. save array [modified]

save array [modified]

Scheduled Pinned Locked Moved Visual Basic
data-structuresquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    moonshaddow
    wrote on last edited by
    #1

    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

    O 1 Reply Last reply
    0
    • M moonshaddow

      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

      O Offline
      O Offline
      o m n i
      wrote on last edited by
      #2

      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 info

      Hope it helps! :)

      Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php

      M 1 Reply Last reply
      0
      • O o m n i

        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 info

        Hope it helps! :)

        Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php

        M Offline
        M Offline
        moonshaddow
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • M moonshaddow

          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

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          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

          M 1 Reply Last reply
          0
          • A Ashfield

            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

            M Offline
            M Offline
            moonshaddow
            wrote on last edited by
            #5

            dam, oh well, thanks anyway

            If at first you don't succeed Redefine success J.Hardy

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups