>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')
>
>
>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