Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vcx to available prg
Message
De
04/01/2016 10:10:32
 
 
À
04/01/2016 06:01:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VirtualPC
Divers
Thread ID:
01629513
Message ID:
01629567
Vues:
133
J'aime (1)
>thank you Fernando for your reply !
>i downloaded the FoxBin2Prg v1.19.45 from vfpX and give it a try with this syntax
>
>DO FOXBIN2PRG.PRG WITH  getfile('vcx')   &&here vfpscrollbar.vcx class
>
>
>i received a txt file named vfpscrollbar.vc2 and i used as prg class to build the SPS scrollbar container.
>
>my remarks for this test :
> -all the rgb colors (properties) in the vc2 file are returned as red,green,blue and must be corrected to rgb(red,green,blue).
> ex:
>
>ADD OBJECT 'Sbcontainer1.Spline2' AS spline WITH  BorderColor = 140,176,248,  BorderWidth = 1,  Height = 0,  Left = 3,  Name = "Spline2",  Top = 6,  Width = 7
>Erreur dans la ligne 1239: Verbe de commande non reconnu.
>
>-infortunatly , the code also fails with containers in class.the vfp9 class browser offers a better issue for this example class.
>in all cases must make too manual corrections.

Yes, as I told you, the values are in the format VFP saves them inside VCX, so it's a saved format and that means not allways a valid syntax, but the amount of modifications needed is not complicated to do.

Have you found a better method of generating PRG code? FoxBin2Prg is really intended for Diff and Merge of binaries, and that's why the text generation as PRG style, but as you see, there are some limitations.

The good thing is that almost all the rest of the code is generated with correct syntax (DEFINES, PROCEDURES, etc)

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

Click here to load this message in the networking platform