Schedule.GetEvaluateResult
--------------------------

Queries result of last evaluate.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Schedule](component_Schedule.md) | [5.2](newinversion52.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Schedule.GetEvaluateResult"; ScheduleRef ) 

**MBS**( **"Schedule.GetEvaluateResult";** /\* Queries result of last evaluate. \*/  
**$ScheduleRef**) /\* The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions.e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ScheduleRef | The reference for a scheduled script call or sql query as returned by Schedule.StartScript\* functions or Schedule.ExecuteSQL\* functions. | $ref |

### Result

Returns text or error.

### Description

Queries result of last evaluate.  
Please use [Schedule.SetAutoRelease](ScheduleSetAutoRelease.md) with parameter 0 to avoid the target schedule to be released before you can query result.  
### Examples

Try it:

 # evaluate that in a second   
Set Variable \[$ref ; Value:MBS ( "[Schedule.EvaluateAfterDelay](ScheduleEvaluateAfterDelay.md)"; 1; "1+2")\]  
\# stop plugin from removing schedule after it was evaluated   
Set Variable \[$r ; Value:MBS ( "Schedule.SetFreeAfterRun"; $ref ; 0 )\]  
\# check what is inside?   
Set Variable \[$r ; Value:MBS ( "[Schedule.GetEvaluate](ScheduleGetEvaluate.md)"; $ref )\]  
\# make a pause   
Pause/Resume Script \[Duration (seconds): 2\]  
\# now check result. Shows 3   
Show Custom Dialog \["Result"; MBS ( "Schedule.GetEvaluateResult"; $ref )\]  
\# and free memory   
Set Variable \[$r ; Value:MBS ( "[Schedule.Release](ScheduleRelease.md)"; $ref )\]  
### See also

- [Schedule.ClearEvaluateResult](ScheduleClearEvaluateResult.md)
- [Schedule.EvaluateAfterDelay](ScheduleEvaluateAfterDelay.md)
- [Schedule.GetEvaluate](ScheduleGetEvaluate.md)
- [Schedule.Release](ScheduleRelease.md)
- [Schedule.SetAutoRelease](ScheduleSetAutoRelease.md)

This function checks for a license.

Created 21st May 2015 , last changed 9th November 2021

  
[Schedule.GetEvaluate](ScheduleGetEvaluate.md) - [Schedule.GetFileName](ScheduleGetFileName.md)

[HTML Version](ScheduleGetEvaluateResult.shtml)