Results 1 to 3 of 3

Thread: Simpleton: How to Use variables GLOBALLY

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Toronto, Canada
    Posts
    43
    Hi again everyone. Day ## on a project that has to do with using MDI. The program has multiple forms. The first is a form that keeps track of a list of investments. The second form is the "add" page (form). Now, to pass variables from the "ADD INVESTMENTS" form back to the investment list form, is the best way to do it to declare GLOBAL VARIABLES i.e.
    Public StockPrice as Long?

    I'd like to store this stuff first in a file, but for testing purposes want to keep it in variables.


    Now, once all the information is stored, i want to then put it in an array, for MSCHARTing purposes. I store the above in LISTBoxes and then chart by using arrays.

    So in this next question, how do I choose the type of chart i want to display? Does this site have info on MSChart?

    Thanks guys. I must say this forum kicks MS/Forum and anything else out there!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you declare your variable Public in a form, you can access it with formname.varname
    If you declare your varibale in a module, you can access it with just varname

    I guess someone else can help you with MSCHART

  3. #3
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    He forgot to mention:
    Global <varname>
    and it needs to be in a module.

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