View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Thu Mar 12, 2015 10:08 pm Post subject: %tl - can't seem to make it work |
|
|
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 |
|
|
DanRRight
Joined: 10 Mar 2008 Posts: 2815 Location: South Pole, Antarctica
|
Posted: Thu Mar 12, 2015 10:54 pm Post subject: |
|
|
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 |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Fri Mar 13, 2015 3:36 am Post subject: |
|
|
Thanks, Dan, I'll give it a try!
Bill |
|
Back to top |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Fri Mar 13, 2015 5:42 pm Post subject: |
|
|
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 |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1217 Location: Morrison, CO, USA
|
Posted: Fri Mar 13, 2015 8:10 pm Post subject: |
|
|
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 |
|
|
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2388 Location: Yateley, Hants, UK
|
Posted: Sat Mar 14, 2015 12:04 pm Post subject: |
|
|
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 |
|
|
John-Silver
Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Sat Mar 14, 2015 1:11 pm Post subject: |
|
|
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 |
|
|
|