Hi guys,
thanks to all of you which runs this web site, and please let me ask one stupid question, because im beginner in Fortran.
I would like to ask if Fortran is endowed with functions which I known from Visual Basic (and VBA), as REDIM PRESERVE or ADD ITEM, which I was using for dynamically enlarging matrix/array according to number of cycles in loop. Here is example:
VBA:
Dim Recorder()
For Row = 1 To Number
Results = Number * 5
ReDim Preserve Recorder(1 To Row)
Recorder (Row) = Results
Next Row
... or another example
VB.NET:
Dim Záznamník As New ArrayList
For Row = 1 To Number
Results = Number * 5
Recorder.Add(Results)
Next Row
Point is to simplify code from loop which will be counting future dimension of “recorder” array
Thanks in the advance for your reply
thanks to all of you which runs this web site, and please let me ask one stupid question, because im beginner in Fortran.
I would like to ask if Fortran is endowed with functions which I known from Visual Basic (and VBA), as REDIM PRESERVE or ADD ITEM, which I was using for dynamically enlarging matrix/array according to number of cycles in loop. Here is example:
VBA:
Dim Recorder()
For Row = 1 To Number
Results = Number * 5
ReDim Preserve Recorder(1 To Row)
Recorder (Row) = Results
Next Row
... or another example
VB.NET:
Dim Záznamník As New ArrayList
For Row = 1 To Number
Results = Number * 5
Recorder.Add(Results)
Next Row
Point is to simplify code from loop which will be counting future dimension of “recorder” array
Thanks in the advance for your reply