>Good evenng all
>
>Yes folks, we have an honest to God QuickBasic program that needs to be converted to VFP. I have never used QB.
>
>If anyone has a suggestion about how to go about this ugly task, I REALLY would like to hear from you. Also, does anyone know of any QBasic to Fox coverters (any flavor of Fox 2.x or later); or of any tools that would generate psudeo code, or even a tool that would generate something like a UML diagram from QBasic source code?
Frankly, you can do a lot by just running FoxDoc (aka Snap! aka Documenting Wizard) on the source - you'd only have to refill the keywords table. You can also achieve a lot by just writing a simple reformatting parser, to put those pesky multiple commands in the same line into separate lines... and then find a way to deal with the GoTo statements. The latter would probably have to be manual, because I can't imagine a piece of code which would convert a mumbo-jumbo of GoTo spaghetti into structured code.