gettingstarted
[Top] [All Lists]

Re: (no subject)

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: (no subject)
From: Russ Jones <r dot jones at sympatico dot ca>
Date: Wed, 30 Aug 2006 18:08:44 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <59DF6309-1E21-4F08-8F56-A45C1FBC3B7F at usa dot net>
Hi Robert.
See comments interspersed below:
On Aug 30, 2006, at 5:36 PM, Robert Poland wrote:

Hi,

I think I want to create a ComboBox. It has several dates created by a method (FillWeeks). When I run it the dates are available to the arrows bar. But moving the mouse over them doesn't highlight any of them. If I select one it then appears in the ComboBox. his is what I've got so far;

// the following code is, I assume, in the ComboBox Open event:
  Dim s as String
  Dim i,last as Integer
  Dim d as New Date

  s=FillWeeks
  last= CountFields(s,",")
For i=0 to last // this always leaves a null as the first item. If you use 1 to last, the user has to choose a date.
    me.addRow NthField(s,",",i)
  Next
  me.ListIndex=i // -1 would give a "no selection yet"

// and , I assume, the following line of code appears in the ComboBox Change event:

  editField1.text=me.text

Also don't think I'm passing my selection on. Help or examples would be appreciated.

Robert Poland

With the code placed in events as I have assumed, it seems to work ok for me.

Russ

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>