Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vcx to available prg
Message
From
04/01/2016 10:10:32
 
 
To
04/01/2016 06:01:41
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VirtualPC
Miscellaneous
Thread ID:
01629513
Message ID:
01629567
Views:
132
Likes (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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform