Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 5 Jahren, 2 Monaten
Letzter Beitrag:
vor 5 Jahren, 2 Monaten
Beteiligte Autoren:
JP, Sylvain ROBERT ( Dat).pcs.crosspost, Stefan Bentvelsen, Richard Rose.pcs.crosspost

Is there a Windev equivalent of Clarions "Evaluate" function

Startbeitrag von Richard Rose.pcs.crosspost am 18.04.2013 11:36

In Clarion there is a function called Evaluate which allows me to Bind some variables so that users can create their own formulas stored in a string variable which can use one or more of the bound variables to produce a result.

Examples might be 3 fields, lets call them Lengthvar, Widthvar & Heightvar and they contain the values 4000, 750, 10 respectively.

The user can type into a string variable called MyFormulavar "Lengthvar * Widthvar * Heightvar" so the Clarion evaluate function would return 30,000,000.

The Evaluate function allows users to create their own formulas which can take the values from the variables referred to in their formula.

I cant seem to find anything like this in Windev, does one exist, if so what is it called so I can look it up in the help docs?

TIA.

Message forwarded from pcsoft.us.windev

Antworten:

Hi Richard,

may be, the statement Compile() is what you're looking for.

von Stefan Bentvelsen - am 18.04.2013 11:46
Hi Richard,

ExecuteCode() is the function your searching for
So for your example the code will be ExecuteCode("Result"+MyFormulaVar)

HTH

Sylvain

Richard Rose wrote in news message :
> In Clarion there is a function called Evaluate which allows me to Bind some variables so that users can create their own formulas stored in a string variable which can use one or more of the bound variables to produce a result.
>
> Examples might be 3 fields, lets call them Lengthvar, Widthvar & Heightvar and they contain the values 4000, 750, 10 respectively.
>
> The user can type into a string variable called MyFormulavar "Lengthvar * Widthvar * Heightvar" so the Clarion evaluate function would return 30,000,000.
>
> The Evaluate function allows users to create their own formulas which can take the values from the variables referred to in their formula.
>
> I cant seem to find anything like this in Windev, does one exist, if so what is it called so I can look it up in the help docs?
>
> TIA.

Message forwarded from pcsoft.us.windev

von Sylvain ROBERT ( Dat).pcs.crosspost - am 18.04.2013 13:03
Also look at EvaluateExpression()

http://doc.windev.com/en-US/?1000019782

von JP - am 18.04.2013 13:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.