CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Variable

  1. #1
    Join Date
    Nov 1999
    Location
    Austria
    Posts
    56

    Variable

    I have to store a big lot of variables, when I store them using a array there seems to be a crash started. So I want to store them var by var.
    The Vars are defined like "N1" up to "N145". I thought there must be a easy way to store with a for loop like
    for (value = 1;value < 144;value ++)
    {
    Var = "N"+Value2String(value);

    How can I now get the content of this Nxx Var ??
    Must it be a pointer ? Every idea welcome.

    Thanks


  2. #2
    Join Date
    Jun 2001
    Posts
    4

    Re: Variable

    You can use a class for array like CArray or CDWordArray.
    If you have anything you doesn't understand reply me.
    Good work.
    Pierre


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured