Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: saved table values not displayed in array row source combos

$
0
0
Re: saved table values not displayed in array row source combos
FoxInCloud
Re: saved table values not displayed in array row source combos
Dec. 29, 2012
10:41 am
3OG0MWCMKShow this entire thread in new window
Gratar Image based on email address
From:Garth Groft
To:Thierry Nivelet (FoxInCloud)
Thierry, you wrote:
1. you absolutely need to clear .RowSource before modifying it; VFP behavior, verified many times.

as you requested in a prior post, all rowsources are cleared in form's init event before combo is displayed. making this change did not resolve the issue.

2. if you have a .controlSource, you may not need to set .value explicitely, .refresh() should do the job (executed whenever a form is launched - VFP / FiC behavior)

i may not be getting this right. what i did was add thisform.refresh to end of form's init event. this change did not help. this is probably not the change you intended.

3. when you run in debug mode, can you see the list populated correctly? or not? and .value?
does .listindex change when you assign .Value?

yes, the array is correctly populated. the value is set to the options table value which is also correct. .listindex is 1 initially but changes to 2 when .value is assigned the table value.

4. are you sure the value you assign to .Value exists in .rowsource? any screenshot showing that?

you have asked this question four times before and i have tried my best to answer. hopefully this will be more helpful.

the values in the array are the result of a query on a field in a table. array values are shown in most screen shots. of the value in the table value was manually change to be different , the array would show it as a new element among the correct element. the options field used by the combo has a specific size. when you select one of the element of the array, the value selected is saved in a field of the same name and size in the options table. so yes, the.value absolutely exist in the .rowsource. everything is just it should be except the correct value saved is not displayed in the browser.

5. we need as much info as possible to help you debug that...






thank you.

Garth


http://west-wind.com/wwThreads/Message3OD183E0S.wwt


i will provide any combo properties information needed. i do not recall seeing your prior request for more information. what properties do you need investigated?




Viewing all articles
Browse latest Browse all 10393

Trending Articles