Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

I've just moved to .NET from VB6 and am having teething problems.

I have written a DigOut command in the form code, the variables for which are declared in a module supplied by the I/O card manufacturer. I have included this module in the solution but in the form code it's still telling me the variables haven't been declared. Any ideas?

Ta

 

Also, as I'm using the help more often now, can anyone tell me if I can increase the size of the help font?

Posted

If you have used the word "Dim blah as Integer" then the scope of the variables would only be for that module. If you change it to friend scope ie Friend blah as Integer then it should sort it.

 

As for the help file, its a IE window, look at your menus :) Its under View, Text Size.

Posted

Hi Grimfort,

Thanks for the reply and I can now read the text!

 

But the variables are all declared as Public which is the most accessible in VB.NET isn't it, as there's no Global now?

Do I have to declare the module or something in .NET? Another option would be to paste the whole module into the form but that would be messy!

  • 2 weeks later...
Posted
Public scope is the most visible. It makes the variables usable from both the current application and any other applications that import it. If you just want your variables visible in the current application, use the Friend modifier.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...