Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GPF: User defined combo box class in grid
Message
From
16/11/2001 05:17:33
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00582300
Message ID:
00582614
Views:
41
Vlad tahe the following example a table name contacts that has one field called country tha field is a foneign key to the countrylist table this for example is working in SQL Server ang the primary key's for the tables is an identity field so being an identity is an int field now you have a grid to show the contacts and on the country field I have a comboshowing the countrys does this seems a good enoughf use case?

>Hi!
>
>I never used combobox with Int field because it is supposed to work with character data only. Working with Int field comes from older versions of FoxPro and left for compartibility. It is not recommended to use this feature of combobox at all, because it is also confusing and less maintenable for application solutions (Int field is populated by comnbobox differently). Can you give sample of use-cases for such approach? Never had it.
>
>For what is worse, combobox in grid working with numeric/integer field was always buggy - this bug is described at the Russian VFP Club site (at least I have seen this forst time there).
>
>Because rarely used, its no wonder this cause crash.
>
>However, I did not seen confirmation from Andrew that these conditions are true in his application. Lets wait for his answer.
>
>>Hi Vlad put an Assign method to your combo and add it to the form the boundto property must be set to true and bound to an Int field.
>>
>>>Hi!
>>>
>>>I would like to look at it. Used comboboxes several times inside of the grid, and never got a GPF just because combobox. It is interesting for me. There could be also another reason. Lets see if it could be fixed/workarounded.
>>>
>>>>I have tried this in both VFP 6.0 and 7.0 and get the same result.
>>>>
>>>>I have a ComboBox class (extended from work found here on the Thread) that mimics QuickBooks interface elements. The class finally works just the way I want it to, except for one glaring problem.
>>>>
>>>>If I have the control on the form it works A-OK. If I put the control inside the grid as a column active control oject, I get a GPF when I run the form.
>>>>
>>>>I have spent a fair amount of time trying to understand/fix this problem, but do not know what else to try, so I turn to the Thread.
>>>>
>>>>Is there a channel whereby I can approach MS with this? If there is anybody here that would like to take a look at it, I have made a small demonstration form that I can submit.
>>>>
>>>>Thanks in advance,
>>>>
>>>>Andrew Jennings
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform