Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / qform Problems

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. qform Problems
#558
Posted by: 2002-10-15 17:53:31
Hi...

When making a qform like this:


DECLARE SUB ListBox1Click (Sender AS QLISTBOX)
DECLARE SUB ListBox1DblClick (Sender AS QLISTBOX)

CREATE Form AS QFORM
    Caption = "Form1"
    Width = 320
    Height = 240
    Center
    CREATE ListBox1 AS QLISTBOX
        Left = 146
        Top = 7
        ItemIndex=2
        Height = 153
        OnClick = ListBox1Click
        OnDblClick = ListBox1DblClick
    END CREATE
END CREATE

ListBox1.AddItems="item1","item2","item3","item4"

Form.ShowModal

SUB ListBox1Click (Sender AS QLISTBOX)
    print ListBox1.itemindex
END SUB

SUB ListBox1DblClick (Sender AS QLISTBOX)
END SUB


I dont see the first item... item1.... What am I doing wrong?


Thanx for any info..

/A
Message2. Re: qform Problems
#559
Posted by: 2002-10-15 18:03:46
There's a small error in the AddItems command. It should be:

ListBox1.AddItems "item1","item2","item3","item4"

Bye
Message3. Re: qform Problems
#560
Posted by: 2002-10-15 18:56:59
Works like a charm ... tnx.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥860.00 ·
 
 
¥900.00 ·
 
 
¥810.00 ·
 
 
¥317.00 ·
 
 
¥1,370.00 ·
 
 
¥660.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0