In reviewing your code, you need to specify the full object reference
for the .RowSource and enclose it in quotation marks:

.RowSource = "thisform.cmbGetValue.aList"

Fred



On Tue, Dec 14, 2010 at 11:29 AM, Michael Savage <[email protected]> wrote:
> Does this help? I did as you suggested, went back to the default combo
> box that comes with fox.
> When it runs I added a property aList[1,3], (via the addproperty method
> in the init)
> at present it says the rowsource is the text in the first column and
> rowsourcetype is 5 && array.
> On 14/12/2010 1:18 PM, Fred Taylor wrote:
>> Where do you have the code you posted?  The settings as you've shown
>> should work.  If they don't, you may have other code preventing or
>> changing the way it should work, or your ComboBox is corrupted in some
>> manner.
>>
>> Suggest you try a simple VFP ComboBox with no code or inheritance and
>> see what happens.
>>
>> Fred
>>
>>
>>
>> On Tue, Dec 14, 2010 at 9:34 AM, Michael Savage<[email protected]>  wrote:
>>> I'm not sure I understand: Here is the code snippet.
>>> WITH THISFORM.cmbGetValue
>>>      DIMENSION .aList[nSize,3]
>>>      IF nSize=1
>>>          .aList[1,1]='No Selections Defined Yet'
>>>          .aList[1,2]='Please Define A New Selection (Click Button To The
>>> Left)'
>>>          .aList[1,3]=1
>>>      ELSE
>>>          SELECT DeptListing
>>>          .aList[1,1]='Please Make A Selection'
>>>          .aList[1,2]='Please Make A Selection or Click Left Button To
>>> Define A New One'
>>>          .aList[1,3]=0
>>>          SCAN
>>>              SCATTER MEMVAR
>>>              nSize = nSize + 1
>>>               .aList[nSize,1]=m.brief
>>>               .aList[nSize,2]=m.descrip
>>>               .aList[nSize,3]=m.depthdrid
>>>          ENDSCAN
>>>      ENDIF
>>>      .RowSourceType=5
>>>      .RowSource=.aList
>>>      .listindex=1&&  Your suggestion??? Did I do it right??
>>>    .BoundTo=.T.
>>>      .BoundColumn=3
>>> ENDWITH
>>>
>>> On 14/12/2010 11:19 AM, Fred Taylor wrote:
>>>> Set the ListIndex property to 1 (or some other value).
>>>>
>>>> Fred
>>>>
>>>>
>>>>
>>>> On Tue, Dec 14, 2010 at 8:49 AM, Michael Savage<[email protected]>    
>>>> wrote:
>>>>> I have a combo box with three columns, of which two are hidden. I want
>>>>> to display the info in the the first column, first element of the first
>>>>> row at startup.
>>>>>
>>>>> So I have a property of the combo box, called aList
>>>>> I tried setting the RowSource to this.aList
>>>>> and the RowSourceType to 5 (&&    Array)
>>>>> I then fill it with values.
>>>>>
>>>>> I also set the bound column to 3, (a primary key value). The boundto has
>>>>> been set to .t.
>>>>> I get no errors, but the combo box displays, nothing at all.
>>>>>
>>>>> What have I forgotten to do?
>>>>> TIA,
>>>>> Mike
>>>>>
>>>>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to