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 

%lv edit_cells
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
LitusSaxonicum



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

PostPosted: Thu Sep 16, 2021 6:41 pm    Post subject: Reply with quote

Steve,

I have been doing other things! (And I put %lv aside assuming that it was hopelessly broken!).

I would appreciate anyone giving it a try. I left out the mechanism for filling ROWS with initial data and recovering it at the end. Also, it is my testbed for Paul's new %bn format code (latest Salflibc.dll).

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 18, 2021 7:36 am    Post subject: Reply with quote

Eddie

I have tested your code which looks very impressive.

A minor detail: when I use the arrow keys to navigate from one cell to another, I get a runtime exception.

But on second thoughts, I tested again using 32 bits and it works. So maybe this is something that I need to look at.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



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

PostPosted: Sat Sep 18, 2021 8:51 am    Post subject: Reply with quote

Hi Paul,

Sorry it is a bit pedestrian.

What I forgot to add in my haste to post (not waiting yet another year!) are two things. Firstly, when to extract the numerical results, and secondly what happens if there are more ROWS than are displayed.

In the former case, it is possible to extract the results as they are input, but that does prejudice a Cancel button operation. The alternative is to parse the ROWS after an Accept action button press, which is slightly harder (but not much).

The other thing is that %lv seems to handle scrolling perfectly when I set ROWS to 26.

Oops, I didn't test it in 64-bit.

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Oct 18, 2021 3:53 pm    Post subject: Reply with quote

Eddie

For a 64 bit executable the program fails at line 84 in your code.

A possible fix is to change this line to...

Code:
READ (CBE,*, IOSTAT= istat) VALUE


in order to avoid the exit on end-of-file.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



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

PostPosted: Mon Oct 18, 2021 8:29 pm    Post subject: Reply with quote

Perhaps it's a good job that I don't use the 64-bit compiler, because I would have been nonplussed by the error, and wouldn't have had a clue that this was the answer!

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
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
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