Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modifying forms with old ActiveX controls to point to ne
Message
De
25/11/2015 03:06:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01627810
Message ID:
01627865
Vues:
84
>Any recommendations for migrating VFP scx forms containing "older" versions of ActiveX controls (and related code) to a new development machine that will have "newer" versions of the activex controls? (the older versions of the activex controls will not be present on the new machine)

Hi Chris:

You may change it in plain text if you convert your form with FoxBin2Prg.
The generated text can show you something like this:
	ADD OBJECT 'oleRTF' AS olecontrol WITH ;
		Height = 197, ;
		Left = 28, ;
		Name = "oleRTF", ;
		Top = 20, ;
		Width = 297
		*< END OBJECT: BaseClass="olecontrol"  Nombre="frm_olertf.oleRTF" Parent="frm_olertf" ObjName="oleRTF" OLEObject="c:\WINDOWS\system32\richtx32.ocx" Value="0M8R4KGxGuEAAAAAAAAAAAAAAAAA........" />
So you can change the "Nombre" property value with your new name.
The "Value" property have the settings you have configured on your OCX, and you can test if keeping this "Value" your new OCX keep working (is compatible) or not.

Finally, once changed the OCX name, you can regenerate your form from the text.

Regards.-
Fernando D. Bozzo
Madrid / Spain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform