Silverfrost Forums

Welcome to our forums

Statement over two lines

18 Jan 2011 9:41 #7529

Hello, how can I allocate a Variable with values that are over two lines. Like this:

  INTEGER*2 HPELE(19)                                                       

!
DATA HPELE /0,0,0,0,0,0,0,0,0,0,
* 0,0,0,0,0,0,0,0,0/
In the past I could do this, if I put a character in col 7 (*).

But under FTN95 I don't know how to do!

Greetings from Germany! Michael

18 Jan 2011 10:44 #7530

It looks if you have free format syntax so there are 2 options: make it 1 line or use the free format continuation, ie

DATA HPELE /0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0/ ! 1 line option up to 132 characters

DATA HPELE /0,0,0,0,0,0,0,0,0,0, & ! & is a continuation character & 0,0,0,0,0,0,0,0,0/ ! & can be first character on next line

Please login to reply.