if you look at the vfp_import_xcx.prg importer of Lianja, there is a function called " convertProperties() " which (for example in case of the here mentioned RGB() issue, but also in a few other cases) gives the data from the vcx/scx a needed m.cPropStart + m.cPropvalue + m.cPropStop.
Might be an idea to have such functionality switchable to create runnable programs. The commentary found in the early 2013 version near the "Color" is from me (did NOT check latest version). As I only enhanced/debugged some the functionality I will not post the extracts from the code (contact Barry before incorporating and publicizing), but I do not think it will be a problem, as the LianjaX was intended to mirror vfpX licensing.
HTH
thomas
>>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!