Common areas of storage

  • Thread starter Thread starter Bryan McCammon
  • Start date Start date
B

Bryan McCammon

In my main (starting) form, I read a security record
which pertains to the user and his access. I wish to
pass that info to the next form without having to read it
again. I am familiar with the method of passing values
to a function or sub using ByVal, but how do you pass
values from one form to another? Is there a common area
of storage that can be accessed by all components? I
would appreciate any ideas on how to do this. Thanks.
 
Hi Bryan,

A form is a class, so you need only set up a get/set property inside the
second form and then pass it in as the value of that property right before
you call the form's show method:

Private mshipvia As String

Public Property mmshipvia() As String

Get

Return mshipvia

End Get

Set(ByVal Value As String)

mshipvia = Value

End Set

End Property

HTH,

Bernie Yaeger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top