Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP after 2015
Message
De
12/09/2007 11:13:30
 
 
À
12/09/2007 00:30:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01253216
Message ID:
01253943
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform