Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 6.0 SaveAsClass - Header, Column,Page
Message
 
To
03/10/1998 01:01:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00143459
Message ID:
00143565
Views:
34
Tabacaru,

Sure;
DEFINE CLASS MyHeader AS Header
  PROCEDURE Init
    WITH THIS
      .Caption = "This is a test"
  ENDPROC
ENDDEFINE
Now the hard part, getting the grid to use this header class. In the grid's Init;
SET PROCEDURE TO <ThePrgThatHasTheDefineClassInIt> ADDITIVE
WITH THIS
   FOR Col IN .Columns
      .RemoveObject("Header1")
      .AddObject("Header1","MyHeader")
   ENDFOR
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform