PC Review


Reply
Thread Tools Rate Thread

Common areas of storage

 
 
Bryan McCammon
Guest
Posts: n/a
 
      25th Oct 2004
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.


 
Reply With Quote
 
 
 
 
Bernie Yaeger
Guest
Posts: n/a
 
      25th Oct 2004
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

"Bryan McCammon" <(E-Mail Removed)> wrote in message
news:00ae01c4ba35$1a7673a0$(E-Mail Removed)...

> 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.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining two ranges based on common a common value ahmed Microsoft Excel Misc 5 18th Apr 2009 05:04 PM
Common footer but not common margins please -(Page 1 of 2) etc RajenRajput1 Microsoft Excel Misc 9 26th Aug 2008 06:56 PM
Protect areas of a document while leaving other areas unprotected. Word 2002 XP jereviscious Microsoft Word Document Management 3 4th Mar 2006 07:59 AM
Cannot access payment areas and 'login' areas on Websites David Maxwell Windows XP Internet Explorer 3 7th Aug 2004 09:53 PM
Fast Common Network Storage Rob Storage Devices 1 16th Nov 2003 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 PM.