PRB: F2414: Initializing Substrings in DATA StatementsLast reviewed: July 18, 1995Article ID: Q71313 |
The information in this article applies to:
SYMPTOMSUsing Microsoft FORTRAN to compile a program that attempts to initialize substrings using an implied-DO list in a DATA statement may result in the following error messages:
error F2414: (string name) : DATA : not array-element name warning F4400: DATA : more constants than names CAUSEThis is not a problem with the compiler. The ANSI 77 Standard prohibits the use of implied-DO loops in DATA statements for anything but arrays. Character substrings are not considered arrays.
RESOLUTIONPossible solutions to suppress the F2414 and F4400 error messages are:
MORE INFORMATIONThe following program produces the F2414 and F4400 error messages:
character*2 a(2) data (a(i)(2:2),i=1,2) /'1','2'/ write(*,*) a(1) endThe following sample programs illustrate possible solutions to suppress the F2414 and F4400 error messages:
|
Additional reference words: 5.00 5.10 1.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |