Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / QSTRINGGRID onselectcell bug

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. QSTRINGGRID onselectcell bug
#8692
Posted by: qmark 2006-10-06 19:26:51
selcell  (Col%, Row%, CanSelect%, Sender as QSTRINGGRID)

onselectcell for QSTRINGGRID seems to be limited at row 32767

the event works well until the Row% 32767 but
from row 32768 on  there is no returnvalue


is there any workaround?
Message2. Re: QSTRINGGRID onselectcell bug
#8697
Posted by: 2006-10-10 03:47:15
I don't have this problem. this example code work fine for me :)

' Copy and paste into your program
 DECLARE SUB StringGrid1SelectCell (Col AS LONG, Row AS LONG, CanSelect AS LONG, Sender AS QSTRINGGRID)

 CREATE Form AS QFORM
  CAPTION = "Form1"
  Width = 424
  Height = 434
  Center
  CREATE StringGrid1 AS QSTRINGGRID
   Left = 0
   Top = 0
   Height = 400
   Width = 416
   Align = 5
   RowCount = 43333
   OnSelectCell = StringGrid1SelectCell
  END CREATE
 END CREATE

'Insert your initialization code here

 Form.SHOWMODAL

'--------- Subroutines ---------

 SUB StringGrid1SelectCell (Col AS LONG, Row%, CanSelect AS LONG, Sender AS QSTRINGGRID)
  SHOWMESSAGE STR$(row)
 END SUB
Message3. Re: QSTRINGGRID onselectcell bug
#8698
Posted by: qmark 2006-10-10 15:32:27
Thanx bobix

I've modified the code according to your example

It works fine now!
Message4. Re: QSTRINGGRID onselectcell bug
#8759
Posted by: 2006-10-19 05:32:40
:) Super
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-12-13  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0