Might be to do with focus.
From Help:
The ActiveRow property does not return the same value as RECNO( ) in an indexed table. ActiveRow returns zero if the grid doesn't have the focus or when you access a row outside the grid display.
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt Sent: Saturday, 30 January 2016 9:42 AM To: profoxtech@leafe.com Subject: RE: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
OK - strangely enough - when I was trying to review the issues and stepping thru the Method where the main processing takes place - that ActiveRow kept showing as Zero. But, now, in that Method - I simply put in a Wait statement and have it report what the ActiveRow - and now its showing a proper record # value. Very strange...
-K-
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Kurt Wendt Sent: Friday, January 29, 2016 5:20 PM To: profoxtech@leafe.com Subject: Multi-Select Grid & Foxite Code Issue (Was...RE: A Question of ListBoxes)
Hey Ted,
Thanks for "Getting That For me".
So - yes, I decided to go the Grid route on this issue. I did look at the 1001/Ch 6 - but, in the webpage it refers to using sample code that came with the book.
However, I saw one of the links above it - from Foxite. I decided to implement that code. To be honest - I hadn't sub-classed before, but, I figured it out and made a Grid sub-class.
However, I'm having a problem in implementing the code. I implemented everything as stated on this webpage: https://www.foxite.com/faq/default.aspx?id=3#
I believe I implemented all the code correctly. However, I'm having a problem with the following lines: WITH THIS .nActiveRow = IIF(.ACTIVEROW = 0, .nActiveRow ,.ACTIVEROW) && Assign value to class property
Originally the 2nd line above was as follows: .nActiveRow =.ACTIVEROW && Assign value to class property
The problem is - value in ACTIVEROW is Always Zero (a property in the Grid ). I have NO Idea why its always Zero. In theory - if I change to another record - it should be giving the record #.
Any suggestions would be greatly appreciated.
Regards, Kurt
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ted Roche Sent: Thursday, January 28, 2016 4:50 PM To: profoxtech@leafe.com Subject: Re: A Question of ListBoxes...
On Thu, Jan 28, 2016 at 4:04 PM, Kurt Wendt Kurt_Wendt@globetax.com wrote:
To a certain extent - I agree. If they want a Grid - maybe I should give
them one. That being said - I don't think there is a straightforward way in a Grid to Select Multiple items. Am I wrong? Although - After writing the last 2 sentences - some ideas were rolling around in my head about implementing a multi-select in a Grid. Since, at least with me - I know anything is possible - as I've done some interesting screen designs in the past!
Forgive me, but the answer is obviously: http://bfy.tw/3yWI
and again, I recommend 1001, Chapter 6 this time.
-- Ted Roche & Associates, LLC http://www.tedroche.com
[excessive quoting removed by server]