replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - How can I change C to ! in an old code to run in FTN95
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I change C to ! in an old code to run in FTN95

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
khoshravan



Joined: 03 Dec 2012
Posts: 31

PostPosted: Tue Dec 11, 2012 7:42 am    Post subject: How can I change C to ! in an old code to run in FTN95 Reply with quote

I have an old FORTRAN program. It has used C in the first column to show that the line is comment.

I tried to debug this program in SilverFrost FTN95 Express. It says those lines with "C" in the beginning contains an illegal character.
I have to replace them with "!" character.

1 Doesn't SilverFrost FTN95 Express, recognize "C"
2 Is it possible to define this procedure to SilverFrost FTN 95?
3 How can I solve this issue?
4 Is there easy way to find/replace only C in the first column of the code?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Tue Dec 11, 2012 9:04 am    Post subject: Reply with quote

C is used for a comment line in "fixed format" Fortran.
FTN95 assumes "fixed format" when the file extension is .for or when /fixed is used on the command line.
Back to top
View user's profile Send private message AIM Address
khoshravan



Joined: 03 Dec 2012
Posts: 31

PostPosted: Tue Dec 11, 2012 9:49 am    Post subject: Re: Reply with quote

PaulLaidler wrote:
C is used for a comment line in "fixed format" Fortran.
FTN95 assumes "fixed format" when the file extension is .for or when /fixed is used on the command line.


Dear Paul

Thanks a lot.
I had read it before but totally forgot today.
Thanks again
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group