Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 6.0 SaveAsClass - Header, Column,Page
Message
De
03/10/1998 11:50:28
 
 
À
03/10/1998 10:49:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00143459
Message ID:
00143596
Vues:
39
>>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
>>
>
>Jim- I have toyed around with this kind of thing before, but never really gone too far with it, because I can't get properties copied from the form designer header to the 'myheader' automatically. Have you ever seen a way devised to 'loop' through an object properties, for the purpose of mimicking them in another object?

VFP 6.0 has a new AddProperty method that should do the trick for you.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform