Jump to content
IGNORED

Diming a variable more than once


jbs30000

Recommended Posts

Say at the beginning of the program I go dim MyVar1=a

and then somewhere else in the program I do MyVar2=a

I can now use either to access a right?

Also, say instead of using MyVar2 I do something like MyFixed=a.b

Now, I can use MyVar1 to access a as an integer and MyFixed to access a.b as a fixed number, right?

Thanks.

Link to comment
Share on other sites

Say at the beginning of the program I go dim MyVar1=a

and then somewhere else in the program I do MyVar2=a

I can now use either to access a right?

 

Yes, you can-- just don't forget that if you change MyVar1, then MyVar2 will change as well, because they are both simply alternative names for a.

 

Also, say instead of using MyVar2 I do something like MyFixed=a.b

Now, I can use MyVar1 to access a as an integer and MyFixed to access a.b as a fixed number, right?

Thanks.

 

Yes-- but again, if you change MyVar1, you will also be changing MyFixed.

 

Michael

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...