Olaf Doschke
Programmer
I inherited maintainance of a VFP7 application and today am very thankful for Tamar writing about view creation with macro substitution in "What's New In Nine":
[link ]View creation with macro substi[/url]
I am still not finished, but I could now regenerate a view database with code by GenDBC, modified in the places macro substitution is used within the view SQL. By the way: It's no fault of GenDBC the skript it outputs has it wrong, GenDBC retreieves the SQL as stored in the DBC, and as that was a VFP7 DBC it has SQL stored with &lcWhere (for example) instead of &?lcWhere.
Now regenerating the view database I had to change &l to &?l in several places, and could generrate a new view DBC (with some new modifications) with VFP9.
Thanks, Tamar, that saved my day.
Now I only need to find out if those views work with VFP9 with SQLENGINE 70, which is needed for legacy mode GROUP BYs in some places. I think I'll do a little test with a new simple view, to see it works.
Bye, Olaf.
[link ]View creation with macro substi[/url]
I am still not finished, but I could now regenerate a view database with code by GenDBC, modified in the places macro substitution is used within the view SQL. By the way: It's no fault of GenDBC the skript it outputs has it wrong, GenDBC retreieves the SQL as stored in the DBC, and as that was a VFP7 DBC it has SQL stored with &lcWhere (for example) instead of &?lcWhere.
Now regenerating the view database I had to change &l to &?l in several places, and could generrate a new view DBC (with some new modifications) with VFP9.
Thanks, Tamar, that saved my day.
Now I only need to find out if those views work with VFP9 with SQLENGINE 70, which is needed for legacy mode GROUP BYs in some places. I think I'll do a little test with a new simple view, to see it works.
Bye, Olaf.