> -----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: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
