OK,
I just read the last three posts.
All is OK now.
Thanks again.
Lennox.

Lennox Jacob <[EMAIL PROTECTED]> wrote: Thanks Walter,

This works,
Protected, you can't call it by saying EF1.SetupColor, you have to call it
 this way: Extensions.EF1.SetupColor 

But this still don't work:
Well, not exactly as Christian described it. If you make the method.
Apparently, a second method is required.
Thanks.

Lennox.

You can, if you choose, make the method Public, and then calling it with
just EF1.SetupColor will work.

Walter Purvis  wrote: >  -----Original Message-----
>  I will need some help here in making this module.

Just add a module to your project (call it "Extensions" if you like), open
up the code editor for that module, click on Add Method, and then create a
method and call it exactly as Christian described it.

>  Protected Sub SetupColor(Extends EF as Editfield)
>     If EF.text = ""  then
>       EF.backcolor = &cDBDBDB
>     else
>       If val(EF.text) > 18 then
>         EF.backcolor = &cFF8CC8
>       else
>         EF.backcolor = &cF9FFCF
>       end if
>     end if
>  End Sub
> 
>  
>  And then just call it:
>  EF1.SetupColor
>  EF2.SetupColor
>  EF3.SetupColor
>  EF4.SetupColor
>  EF5.SetupColor

Well, not exactly as Christian described it. If you make the method
Protected, you can't call it by saying EF1.SetupColor, you have to call it
this way: Extensions.EF1.SetupColor 

You can, if you choose, make the method Public, and then calling it with
just EF1.SetupColor will work.

Should work.


_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:



   
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
_______________________________________________
Unsubscribe or switch delivery mode:


Search the archives of this list here:



                
---------------------------------
Get your email and more, right on the  new Yahoo.com 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to