Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REALY URGENT Using a eval metod for formulas
Message
De
01/09/2000 04:26:29
 
 
À
31/08/2000 18:32:30
Fernando España
Alta Tecnologia En Informatica
Guatemala, Guatemala
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00411533
Message ID:
00411625
Vues:
11
What you want is a tool to convert a VFP expression to a TSQL expression ?
I don't know of such a tool.

But if you're letting users entering a formula in Xbase language, why not letting them entering the formula in SQL Language ?. That way you could just save the formula they entered.


>I have a form in vfp where the users can create his own formulas like in excel
>example excel formula Costo=iif(price=1,total*3,total*2)
>the problem is that the formulas will be evaluated in a stored procedure and the user must write the next sql
>/* Begin formula */
> Cost = Case
> when price=1
> then total*3
> else total * 2
>/* End formula*/
>
> this formula is stored in a field on a table for future evaluation
>
>the big problem is HOW EVALUATE THIS FORMULA BEFORE SAVE IN THE TABLE
>AND CHECK SINTAXIS LIKE QUERY ANALIZER DOES
>
>does exists an Activ-x or dll for include in a form ?
>
>Please help me!!!!!!!!!!!!!!!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform