PRB: Print Function Evaluation Order Has Changed (141879)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q141879 SYMPTOMS
The order of evaluation of the arguments to the Print statement differs in
Visual Basic 3.0 and Visual Basic 4.0.
CAUSE
All products that use Visual Basic for Applications, including Visual Basic
4.0, evaluate all function calls contained within a Print statement first,
before any printing is done. Visual Basic 3.0 evaluates functions while
executing the Print statement.
STATUS
This behavior is by design. The order of evaluation of multiple functions
within an expression is undefined and may change from version to version.
This is documented at the end of the online Help for the Function
statement.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb kbprogramming KB141879 |
---|
|