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 

%tl - can't seem to make it work

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



Joined: 13 Oct 2014
Posts: 531
Location: Morrison, CO, USA

PostPosted: Thu Mar 12, 2015 10:08 pm    Post subject: %tl - can't seem to make it work Reply with quote

I'm having trouble with %tl, to set tab stops, aligning various controls.

If I use integer (kind=3) or double precision, I get the same error, shown here.
Code:

   k = winio@('%`tl&',11d0)

Runtime error from program:z:\cmasterf95\checkmate\win32\c-master.exe
Run-time Error
%TL requires numeric parameter
 BEDCODE_SPECIAL_NEW -  in file scfunc08.for at line 426 [+00ba]
 BEDCODE_SPECIAL -  in file scfunc08.for at line 344 [+0ef6]
 CALLME -  in file scwrit_new.for at line 835 [+00e0]
 SELECT_FIELD -  in file scwrit_new.for at line 799 [+0a5a]
 KEYSTROKE -  in file scwrit_new.for at line 184 [+0234]
 SCWRIT -  in file scwrit_new.for at line 150 [+0fc2]
 OPTION -  in file option.for at line 31 [+037f]
 main -  in file cmain.for at line 135 [+115e]

Any ideas?

Thanks,
Bill
Back to top
View user's profile Send private message Visit poster's website
DanRRight



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

PostPosted: Thu Mar 12, 2015 10:54 pm    Post subject: Reply with quote

Code:
i=winio@('%1`tl&', 56d0)
...

Code:
i=winio@('%2tl&',56, 50)
...



This is indeed confusing diagnostics and i was ones also crazy at such error. The diagnostic has to be: "%TL requires numeric parameter before %TL"

or

%TL has to allow parameter =1 to be omitted so that $1TL = %TL.
(similarly FORMAT(1x,... has to accept FORMAT(x,...) which is an extension of Digital Fortran)
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 531
Location: Morrison, CO, USA

PostPosted: Fri Mar 13, 2015 3:36 am    Post subject: Reply with quote

Thanks, Dan, I'll give it a try!
Bill
Back to top
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 1009
Location: Aerospace Valley

PostPosted: Fri Mar 13, 2015 5:42 pm    Post subject: Reply with quote

I agree with Dan about the need to improve (and document !) error messages, was going to make a suggestion here but have created a new post in 'Suggestions' forum so it doesn't get lost !
for reference it's here:

http://forums.silverfrost.com/viewtopic.php?p=17566#17566
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 531
Location: Morrison, CO, USA

PostPosted: Fri Mar 13, 2015 8:10 pm    Post subject: Reply with quote

Thanks, John, and I read your other post. Sounds like a great idea. I'd be willing to participate, and would also guess that the user community would be glad to assist in this effort.

There are also some ClearWin options that appear occasionally in posts that aren't in the documentation; same sort of deal.

Again, thanks for the thoughts, and I'll keep my eyes out for ways to help.
Bill
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



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

PostPosted: Sat Mar 14, 2015 12:04 pm    Post subject: Reply with quote

FTN95.CHM is all well and good, but it isn't complete. You HAVE to read the CWPLUS.ENH file (installed in the DOC subfolder where the compiler is) and for the new button with text and an icon, read the KBASE section of this forum.

Then, on this website there are the old manuals for FTN77 which document many functions that still work (although anything to do with DBOS and graphics is obsolete).

I recommend reading CWPLUS.ENH in reverse order! There's also and FTN95.ENH file but that is already in reverse date order. (And there are other useful ENH files there).

Eddie
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1009
Location: Aerospace Valley

PostPosted: Sat Mar 14, 2015 1:11 pm    Post subject: Reply with quote

Eddie, you're right and the CWP.enh file is great for keeping track of fixs and new additions BETWEEN versions imo, but it does rely on you being aware that a new one has been released and WHERE it has been put.
If you 'miss' a relevant post then you would miss any such announcement (I refer in particular to the x2 beta releases which I have seen posted which give links to where the relevant .dll's and .enh files can be gotten from).
If you just look in the installed DOC directory then you'll only get the .enh at point of release, with the last entry being 'FTN95 Version XXX Released', and while there are some exceptions, most of the things listed have in fact already been included in the on-line manuals.
Of course, there are the few 'hidden stuffs' still (which I think is your point), but finding them is a nightmare imo.
In any case, my point was specifically about cataloguing error messages, and more importantly meaningful descriptions of them, and I don't find anything about those listed anywhere at all. Maybe I'm just not looking hard enough.
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