|
 |
asp_components thread: Re: asp_components digest: January 08, 2001
Message #1 by "Geoff Higgins" <geoff@v...> on Tue, 9 Jan 2001 09:23:40 -0000
|
|
Looking at your Host File, m_DistrictID is set to 4 through a Public
Function but your Calling File does not call this function. You could set
the value in the Class_Initialize if you want it to be set to 4 from the
start.
Geoff
> Subject: How Can I Access Class Variables From Another Class Module?
> From: "Tom" <tom@i...>
> Date: Mon, 8 Jan 2001 10:19:48 -0000
> X-Message-Number: 1
>
> Hello,
>
> Here's the situation:
>
> ** HOST FILE **
> Private m_DistrictID As Integer
> Public Function GetHTML() <== Main Function
> m_DistrictID = 4
> End Function
>
> Public Property Let DistrictID(ByVal vData As String)
> m_DistrictID = vData
> End Property
>
> Public Property Get DistrictID() As String
> DistrictID = m_DistrictID
> End Property
>
>
> ** CALLING FILE
> Dim objForm As HostFile
> Set objForm = New HostFile
>
> DistrictID = objForm.DistrictID <== Equals Zero
>
> How do you get a reference to the running object so that DistrictID in the
> calling file = 4?
>
> Thanks,
> -Tom-
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_components as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_components-$subst('Recip.MemberIDChar')@p2p.wrox.com
|
|
 |