replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Which way is preferable, apostroph or double quotation mark?
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 

Which way is preferable, apostroph or double quotation mark?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2943
Location: South Pole, Antarctica

PostPosted: Mon Aug 11, 2025 3:56 am    Post subject: Which way is preferable, apostroph or double quotation mark? Reply with quote

The codes below both work OK but which way would be considered preferable? Which one is considered a major and which secondary? This one is right
Code:
     call winop@ ('%PL[axes_pen=2,frame, framed, frame_pen=2, width=2]')
     i = winio@  ('%PV%PL[x_axis="Time", y_axis= "Energy", x_array, scale=linear]%ff&',  900, 600, N, X, Y)

or this:
Code:
     call winop@ ("%PL[axes_pen=2,frame, framed, frame_pen=2, width=2]")     
     i = winio@  ("%PV%PL[x_axis='Time', y_axis= 'Energy', x_array, scale=linear]%ff&",  900, 600, N, X, Y) 


I think in the future even AI will be confused. It is better to define it than to have a total freedom/mess


Last edited by DanRRight on Mon Aug 11, 2025 8:18 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Aug 11, 2025 6:34 am    Post subject: Reply with quote

There is no preference. The Fortran Standard allows both forms.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2426
Location: Yateley, Hants, UK

PostPosted: Sun Aug 17, 2025 12:09 pm    Post subject: Reply with quote

Dan,

As like me you are an oldie, use the single quotes until you want to display a single quote mark. A good example is for degrees, minutes and seconds where you could use "'" for minutes (double-single-double), and '"' for seconds (single-double-single). I think that is clearer than repeating the single like this '''' (single-single-single-single) for minutes.

On the other hand, if you use grads or gons with milligrads or milligons, then you have none of the degrees, minutes, seconds problem, but you do need to check the language of your user to determine if they call it a grad or a gon!

Eddie
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 -> ClearWin+ 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