::GetEvalValue
This command returns the evaluated value of an mdl3StateEntry widget. If an equation evaluates to an invalid result (for whatever reason) ‘Error Evaluating’ is returned. In other words, this command returns the same value as is displayed in the widget after enter is hit and the entry is inactive.
Syntax
::model::mdl3StateEntry::GetEvalValue path
Application
This command returns the evaluated value of an mdl3StateEntry widget. If an equation evaluates to an invalid result (for whatever reason) ‘Error Evaluating’ is returned. In other words, this command returns the same value as is displayed in the widget after enter is hit and the entry is inactive.
The return value for GetEvalValue is subject to change based on the use of model::mdl3StateEntry::SetEntryValue. Please see the documentation for SetEntryValue for more details.
Description
Inputs
- path
- The full path to the mdl3StateEntry of interest. The path argument is the return value of the model::mdl3StateEntry procedure used to create an mdl3StateEntry.
Context
Example
modelGetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entPnt Point p_0 "\"Point 0\""
mdl ReleaseHandle
set dlg [toplevel .dlg]
set frm [frame $dlg.frm -padx 10 -pady 10]
grid $frm -row 0 -column 0 -sticky nesw
set lbl [ label $dlg.frm.lbl -text "X" -width 3 -anchor w ]
grid $lbl -row 0 -column 0 -sticky nws
set stEntry [model::mdl3StateEntry .dlg.frm.stEntry entPnt "x" ]
grid $stEntry -row 0 -column 1
set evalValue [ model::mdl3StateEntry::GetEvalValue $stEntry ]
entPnt ReleaseHandle
Errors
None.