replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Structures and Records use in Powerstation Fortran code
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 

Structures and Records use in Powerstation Fortran code

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Mike Cheek



Joined: 09 Jul 2008
Posts: 11
Location: Houston, TX

PostPosted: Sat Feb 13, 2010 12:02 am    Post subject: Structures and Records use in Powerstation Fortran code Reply with quote

Hi, I've been converting my Microsoft Powerstation Fortran 77 program over under Plato. Been going fairly smooth until I hit this problem. I yielded to temptation (many years ago) and with Powerstation Fortran I used a non standard feature: Structures and Records. The Plato compiler doesn't like this. Is there a way for the compiler to accept this extension? Or do I need to do a rewrite? - Thanks for all your help.

Example of use:

structure /xyz/
real a
real b
end structure

record /xyz/mystuff
mystuff.a = 1.0
mystuff.b = 2.0
_________________
Mike Cheek
Back to top
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 506
Location: Sunderland

PostPosted: Sat Feb 13, 2010 1:14 am    Post subject: Reply with quote

Re-write to:
type xyz
real a
real b
end type

type(xyz) mystuff
mystuff%a = 1.0
mystuff%b = 2.0

You might consider obtaining a conversion program or write one yourself.
The microsoft structure is the same as the DEC VAX Fortran
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support 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