WD: ShowVars Command Doesn't Display Array VariablesLast reviewed: February 10, 1998Article ID: Q81863 |
The information in this article applies to:
SYMPTOMSIn Microsoft Word, the WordBasic command ShowVars does not display numeric or string-array variables. It displays only single- value-numeric or string variables.
WORKAROUNDThe following word Basic code segment illustrates how to view the content of an array while the macro is running.
dim num(100) dim alpha(100) msgbox "the cell you want to see" + Str$(num(x)) MsgBox "the cell you want to see" + alpha(x) Where x is the number of the cell of interest. For small array it may be feasible to use a For Next loop to view the contents of the entire array. STATUSThis is by product design.
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, page 98"Microsoft Word for Windows and OS/2 Technical Reference," page 260 "Microsoft Word for Windows User's Reference," version 1.x, pages 185-189 "Microsoft Word for Windows User's Guide," version 2.0, pages 763-792
|
Additional query words: macword variable variables winword winword2 word6
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |