How to set UDT as Public so that I can assess it anywhere?
From: Shelby (shelby_at_singnet.com.sg)
Date: 05/17/04
- Next message: RAJ: "Re: Strange basic problem with comparision of two varialbes defined as double"
- Previous message: Duane Bozarth: "Re: Strange basic problem with comparision of two varialbes defined as double"
- Next in thread: Duane Bozarth: "Re: How to set UDT as Public so that I can assess it anywhere?"
- Reply: Duane Bozarth: "Re: How to set UDT as Public so that I can assess it anywhere?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 May 2004 00:41:06 -0700
Hi,
I can't set a UDT as Public.
The following code is basically what I want to achieve.
===================
currentuser.bas
===================
Public Type currentuser
P1 as String
...
...
P10 as String
End Type
===================
Form1.frm
===================
' I can only Dim CUSR, can't Public CUSR
Public CUSR as currentuser
Private Sub loginbutton_Click()
CUSR.P1 = "something"
...
...
CUSR.P10 = "here"
End Sub
====================
Form2.frm
====================
Private Sub commandbutton1_Click()
Print Form1.CUSR.P1
End Sub
Basically, I want to have a Gloabl UDT so that I can assess it in any form.
Is it possible to do that?
- Next message: RAJ: "Re: Strange basic problem with comparision of two varialbes defined as double"
- Previous message: Duane Bozarth: "Re: Strange basic problem with comparision of two varialbes defined as double"
- Next in thread: Duane Bozarth: "Re: How to set UDT as Public so that I can assess it anywhere?"
- Reply: Duane Bozarth: "Re: How to set UDT as Public so that I can assess it anywhere?"
- Messages sorted by: [ date ] [ thread ]