BUG: Passing Variant Array to WriteFields Method Generates ErrorLast reviewed: February 4, 1998Article ID: Q180456 |
The information in this article applies to:
SYMPTOMSWhen a Variant array is passed as a parameter, one of the following errors may occur:
An error was encountered while running this program. -or- Subscript out of range. RESOLUTIONTo work around this behavior, pass arrays without parenthesis, as follows:
File1.WriteFields sData STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe following code sample should write the array out as a comma-delimited line. Online documentation indicates that the parameter passed to the WriteFields Method can be a Variant or Variant array of numeric or string expressions.
Steps to Reproduce Behavior
Keywords : vb5all vbce Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |