Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing
Message
From
12/03/1999 15:36:38
 
 
To
12/03/1999 15:32:26
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00196968
Message ID:
00196969
Views:
17
>Hello -
>
>I am running across a problem with my data types and my indexed fields. When I created my application, I set my primary keys in each of my 9 tables to numeric (Primary index). And, I set each of my indexed fields in my tables to numeric as well (Regular index on each of those.
>
>The problem arose when I started workind with combo boxes and selecting choices. I instructed the combo box to show the id number for one field and the "name" in the other.
>
>For example: When you select the drop down in a combo box you would see>
>
>1 WOOD
>2 PAINT
>
>and so forth....
>
>When I selcted a choice, the numericid is placed in the text box, not the word. The reason of course is because everthing is set up for numeric data type for all indexes. It will not allow me to put text in the box.
>
>What are my options to alleviate this problem? I thought I could just go in and change all my regular indexes to character data type, but I can't join together indexes that don't have the same data type, can I?
>
>How do most developers set up their indexes?
>
>Do you use the numeric data type for all indexes? Character data type for all indexes?
>
>Is there a way to change the index, but leave the data type numeric?
>

You problem seemingly has nothing to do with indexes. You may still use 2-column combo, but change the order of column, i.e. 1)Name 2)Id, and set Combo.BoundColumn=2 and Combo.Boundto=.T.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform