Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set VFP Form Property from VB6 OCX
Message
De
31/07/2002 15:41:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00684622
Message ID:
00684688
Vues:
28
First, the better solution is to add this property (HasChanged) to your control - for VFP code is the same if this property is on your control or on the form, but for your code this will be easy and clear. There is way to do this property on the form, but your ActiveX will be usable only from VFP - it will not work in VB and also the way, which I will show you, will not work in other languages like VC++.

Anyway, the way you can do this: use ParentControls collection. VFP support this collection (but VC++ does not support it). In this collection when your control is on VFP form you can access every control on the form (and also columns in grids etc.). Do loop through this collection until you find the form and change its property.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform