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 

possible bug in FTN95?

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



Joined: 14 Jun 2006
Posts: 37

PostPosted: Tue Jun 27, 2006 7:16 am    Post subject: possible bug in FTN95? Reply with quote

The following code:

Code:

MODULE SystemUtilities
IMPLICIT NONE
!
CONTAINS

INTEGER FUNCTION GetEnvStr(key,val)
CHARACTER(LEN=*), INTENT(IN) :: key
CHARACTER(LEN=*), INTENT(OUT) :: val
val = GETENV@(key)
GetEnvStr = LEN(val)
RETURN
END FUNCTION
END MODULE


produces the following error:

error 1173 - Only CHARACTER variables can be assigned to CHARACTER variables, found REAL(KIND=1)

val is defined as a variable length character variable.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Tue Jun 27, 2006 9:29 am    Post subject: possible bug in FTN95? Reply with quote

Clint

You must declare GETENV@....

CHARACTER(LEN=256)::GETENV@
val = GETENV@(key)
Back to top
View user's profile Send private message AIM Address
clint



Joined: 14 Jun 2006
Posts: 37

PostPosted: Wed Jun 28, 2006 2:31 am    Post subject: possible bug in FTN95? Reply with quote

ooops!
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 -> 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