Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid with 3 comboboxes and caffine doesn't work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00132440
Message ID:
00132617
Vues:
13
>>I feel like I've probably scrambled things and I could definately use some help.
>>
>>I have a grid of order items (background searches). It has 3 comboboxes:
>>1. ReportName - based on a view (vReportSupplier)
>***This is now based on vReport_category, a one field view of unique report names***
>>2. State - a class based on a view (vState)
>>3. Supplier - currently based on an array
>>
>>For any given report and state combination I could have multiple suppliers.
>>
>>I've worked my way into 3 problems.
>>1. The ReportName cell is displaying the row number of the item I selected instead of the text....
>>It's displaying "1" instead of "Business Credit ", when I select the first report.
>***This is now fixed***
>>
>>2. Somewhere along the line the vReportSupplier view appears to loose it's contents.
>***This still baffles me***
>>
>>3. I can't get the Supplier column (based on an array - aSupplier) to behave correctly. It's as if aSupplier is created as a character variable. (I try to create/re-create it in the when, but it fails.) And when I try to reference it outside the when it's as if it doesn't exist.
>***This still baffles me***
>-------------------
>
>I figured out part of this...number 1. the ReportName cell is now displaying the right information.
>
>I still don't understand number 2. I stepped thru with the debugger and saw it happen but don't understand why.
>I saved the current select area to a variable.
>Using the Datasession window... I selected and checked the vReportSupplier view and it had 16 records in it.
>Then I returned to the select area that had been in effect. Then my program changed select areas to the vReportSupplier view...
>SELECT vReportSupplier
>And immediately the view had no records in it. I don't understand...what happened???????
>
>I don't have any new information about number 3 yet.
>
>TIA

Hi Richard,

For #3, check to see if your array name is going out of scope. You will need to make an array property on your form, and place the array into it with acopy(). (To make an array property, just put () after the property name, as aMyArray() when adding the property.

For #2, could you give us the code where the view loses its data? You said you could SEE it in the debugger....

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform