Re: Fortran Error Problem



Richard Maine <nospam@xxxxxxxxxxxxx> wrote:

I don't think I believe you. Well, more like I do believe you, but I
think your description is potentially misleading. It can be read to
imply that failing to assign a value can cause this error. Let us be
clear that all forms of this error come from failing to dimension the
array - not from any other cause. Matters like how the array is used
change the symptoms of the error, but are not the actual cause.

Right. But assigning to an undimensioned array is usually a
compilation error such that no object file is generated. One then
won't actually get to the point of running the program, and
won't cause an undefined external symbol. (Unless it isn't fatal,
and is also used on the right side of an assignment, or other place
where a function call can go.)

The combination of not initializing the array and also not
dimensioning it is unusual, not either one separately.

-- glen
.



Relevant Pages

  • Re: Error on UBound with Dynamic Array
    ... ReDim Preserve arrSplit+ 1) ... is that arrSplit has not yet been dimmed as having any dimension. ... need to use a dynamic array and may be checking the boundries, ... Public Function Split(csvString As String) As Variant ...
    (microsoft.public.access.modulesdaovba)
  • Re: Program Fails When Parameter Fixed Constants are Changed (F77) ??
    ... subroutine and then call DCpZeros passing VxGrid, nRdim, and nTHdim. ... Then DCpZeros can dimension VxGrid (nRdim, ... (PS. I'm not concerned or worried about the array bounds exceeded! ...
    (comp.lang.fortran)
  • Re: Array Dim
    ... The "dimension" of an array is how many numbers there are in the comma separated list between the parentheses. ... When using the array in code, each of the numbers in the parentheses are called the Index for that dimension. ... I'm going to give you a made up example to show how to declare a Type object and then show you how to use it. ... The Type Statement starts with the Type keyword and it is followed by the name you want to give to the structure that follows below it (here, I have chosen to call it EmployeeRecords) and ends with the End Type statement. ...
    (microsoft.public.excel.programming)
  • Re: Array of pointer Vs Pointer to Array
    ... that points to an array. ... Now 'pa' is a pointer form of accessing the values in 'matrix'. ... that depends on a variety of things - the size of the other dimension, ... the regular indexing style is a good first guess, ...
    (comp.lang.c)
  • Re: Playing with multidimensional array!?
    ... In traditional compiler languages, rows and columns are differentiated by ... the fact that a two dimensional array occupies contiguous storage locations. ... fact that redim can affect only the last dimension. ... consider these the first dimension and the second dimension rather than row ...
    (microsoft.public.scripting.vbscript)