Hi Gene,
When I made FoxBin2Prg, the main reason to do it was to generate prg-like code with the maximum possible prg compatibility, but allowing the reverse convertion with a valid binary again, so this imposed some constraints in the way that value assignments are made to preserve the original assignment.
Rigth now, if you generate a prg from a scx file, the only adjustment you need to make, AFAIR, is in the property assignments, because they are in a format like:
Property = string
And not in the proper prg format, that is:
Property = "string"
I did it this way because there are like 4 different ways of assigning properties, and in any case the value must preserve a format that is needed to differentiate between these possibilities:
- default blank property value - default property value when you press enter on it's value - normal user assigned value - user assigned function (like when using "=value" in the property value, with the equal sign)
So, if checking/correcting those values and adding the missing quotes is not a problem for you, the other 99% of the generated code is pure prg that follows the prg rules and syntax.
Hope it helps,
Fernando D. Bozzo
El mar., 29 ene. 2019 6:59, Gene Wirchenko genew@telus.net escribió:
Hello:
How do I convert a .scx to a .prg? I have found most of the pieces of code, but I do not see howthe contained objects are created. (I was expecting to find a form .Init().)
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]