Registry Advice needed please 
Author Message
 Registry Advice needed please

I have a class module that has a function that use the GetSetting and
Savesetting to create and read a Key in the registry.The value of the
registry key created is either true or false. This Class function is ran in
the AfterUpdate event of a txtBox ctl. Passing the Form name and ctl name as
parameters to the function. What I want to do is to be able read the value
of the key (True or False) without reading the registry a second time after
setting it this need only be set once. Can I assign the value to a variable?
Or would I have to use property statements via the class? What would be the
best way to implement this. I can send you my code upon request. Please
email me if you need further information.

--
Nicholas J. Aizen
Advanced Software Development

Development Team



Sun, 29 Dec 2002 03:00:00 GMT  
 Registry Advice needed please
You can use a member variable of the class as long as your class doesn't
have to be stateless (as with MTS)

Private mvarRegValue as Boolean

If your variable gets set from within the class, you don't even need let/get
properties.  From within the class, it is quicker to access the variable
directly.

regards, vG


Quote:
> I have a class module that has a function that use the GetSetting and
> Savesetting to create and read a Key in the registry.The value of the
> registry key created is either true or false. This Class function is ran
in
> the AfterUpdate event of a txtBox ctl. Passing the Form name and ctl name
as
> parameters to the function. What I want to do is to be able read the value
> of the key (True or False) without reading the registry a second time
after
> setting it this need only be set once. Can I assign the value to a
variable?
> Or would I have to use property statements via the class? What would be
the
> best way to implement this. I can send you my code upon request. Please
> email me if you need further information.

> --
> Nicholas J. Aizen
> Advanced Software Development

> Development Team



Tue, 31 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Advice needed from VB veterans concerning Registry Adjustments in VB 5

2. High level advice needed....please

3. Please Help - Need Plugin Advice!!

4. TOTALLY NEW TO PROGRAMMING!!!! Need Advice Please :-)

5. Need newbie advice please

6. PLEASE: I need your advice...

7. Table design advice needed please

8. Please read, I need advice.

9. Please help...Need advice how to do a screensaver with VB6

10. Need some advice, please.

11. New to VBscript - need some advice please!

12. * * * * * * * * * * * Need very much YOUR valuable advice, please? * * * * * * * * * * * * * *

 

 
Powered by phpBB® Forum Software