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 

Search found 6 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Fri Jan 12, 2018 7:52 pm   Subject: Re:
does %cn instead of centre@ present a possible preferable solution option ?

The idea is to make a portable function and %cn is certainly not that. I can easily reproduce the centering in subroutine ...
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Thu Jan 11, 2018 8:08 pm   Subject:
Thanks wahorger. The subroutine isn't as convenient as a function but it seems to be the only solution.
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Mon Jan 08, 2018 7:05 pm   Subject: Re:
Perhaps the easiest solution is to use Eddie's approach.
"Eddie's approach" didn't seem to answer the problem of not knowing the length of the input string at compile time. I tried several ...
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Mon Jan 08, 2018 5:52 pm   Subject: Re:
I am assuming that somewhere in your code there is a declaration of the form

CHARACTER (LEN=80) CENTRE@

No. I am writing a wrapper function which doesn't know the length of the string be ...
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Mon Jan 08, 2018 5:44 pm   Subject: Re:
One lives and learns - I never knew such a function existed.

Surely it is a matter of positioning the input string STRING in a character variable of length LW (as in FTN95.CHM) by (LW-LEN_TRIM(STRI ...
  Topic: Using centre@ function
PaulHolden

Replies: 18
Views: 18142

PostForum: General   Posted: Mon Jan 08, 2018 2:49 pm   Subject: Using centre@ function
Is there a "correct" way to wrap the Centre@ function in another function using Fortran 90/95? Centre@ returns a string of length determined by the assignment statement which cannot easily b ...
 
Page 1 of 1
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group