Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP after 2015
Message
From
12/09/2007 11:13:30
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01253216
Message ID:
01253943
Views:
26
It's not even worth it to respond to Walter. But for those lurking, as usual in the type of scenario he mentioned, there might be other ways to get what you want.

In our Java app, we use the Spring framework to add dependency injection for code customization. This methodology can also easily be implemented in dotnet. But for example, we have import and export routines that have Business Rules that are specific to a particular client. In the Spring Framework, you have XML files that describe which classes to use. So after the main class for the importing and exporting is called to drive the process, classes specific to the client are loaded that have different behavior.

>Now since I'm not an expert using .NET, I'd like to ask you how I'd do the following:
>
>USE SomeEmbeddedTableInExe ALIAS MetaData
>LOCATE FOR ID = nSomeId
>cCommand = MetaData.Command
>USE
>lRet = EXECSCRIPT(cCommand)

>
>Walter....
>
>You could either return the single row from a stored proc (or any kind of query)....or you could do an ADO.NET DataTable Select() to bring back the row, and then (and since you mentioned Rick's name) you could use the methodology he presented in his famous article on Executing Dynamic Code in .NET.
>
>There's no question that things are done differently - but they can be done.

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform