PRB: Error Occurs When Using DynamicCurrentControl Property (135522)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q135522 SYMPTOMS
When setting the DynamicCurrentControl property of a column contained
within a grid, you may get the error message "Expression is invalid. Use a
valid expression for DynamicCurrentControl property."
CAUSE
This error message may occur if you used the Expression Builder to create
your DynamicCurrentControl property expression. The DynamicCurrentControl
property sets the active control of a column based on a certain condition.
This is typically accomplished with an in-line if (IIF) statement. When you
add an IIF statement to the DynamicCurrentControl property, Visual FoxPro
assumes that an equal sign (=) resides at the beginning of the statement.
If you have the Expression Builder creates your IIF statement, it adds an
equal sign as the first character and thus cause the error message.
RESOLUTION
Remove the equal sign inserted by the Expression Builder, or do not use the
expression builder to create your IIF statements for the
DynamicCurrentControl property.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/15/2000 |
---|
Keywords: | KB135522 kbAudDeveloper |
---|
|