Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBF to Cursoradapter
Message
From
11/01/2017 04:00:53
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01646486
Message ID:
01646493
Views:
59
Technically your approach is doable. For me the better ways would be to have working CA classes for both data sources available and use some dynamic factory mechanism to decide which is loaded - could also be some config file aproach. You could code a static class hierarchy and modify the loaded CA properties in .init(), but I think statically filed property values will give a more stable environment - esp. if you code with them from the command window as well.

But I'd start working with the new backend in place first. If the rewritten app does not offer dbf datasources, you will have the correct environment to observe any areas in need of optimization/further interest right from start. Even if the converted app gives freedom to use dbf, having a well tested migration path from dbf2SQL will be nice if your customers are offered it ;-)

Having to confront data type issues - if any exist for targeted back ends - very early on is a benefit in my eyes as well.

BTW and totally off-topic: I have (mis-)read twice your company name as WTF Data Services. Perhaps your initials (guess...) invite that ;-)

rgds

thomas

>Hi,
>
>Just learning how to convert my dbf app to a client server. It's a re-write....I would like to use a cursoradapter with native dbfs for testing. After I am satisfied, i would like to now connect to the sql server. I would have already created the structures on sql server. The remote views has a localtoRemote property to make it easy to switch. How can I do that with a cursoradapter? (Using Promatrix Framework)
>
>Thanks,
>
>Bill
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform