| Article ID: | T2939 |
| Date: | 4/22/08 |
| Product: | EPSON RC+ v5.0.0 - v5.2.0 SP2 VB Guide |
| Subject: | Boolean variables do not work with Setvar |
Symptoms
If you use SetVar to set a SPEL Boolean global
preserve variable, no error occurs but the variable is not set to the new
value.
Causes
This is
caused by a bug in EPSON RC+ v5.x.
For example, in the following code, the SPEL variable gMyBoolean is not set to True.
m_spel.SetVar("gMyBoolean", True)
Remedy
Instead of a Boolean SPEL variable, use an Integer.
Set it to 0 for false and 1 for true.
Status
This problem is fixed in v5.2.0 SP3.
