General information
Category:
Forms & Form designer
Title:
Dropdown List Problem with -1
Hello Everyone,
I am having a problem with a list. I have tried to have the dropdown list react to a control source value of -1. I have built the list using Addlistitem(), and at the end of the list of values, specified a value of 'FREE TEXT' for column 1 in the list and in column 2, the string value of '-1'. Column 2 is the "boundcolumn" and "boundto" = .T.
I can see the 'FREE TEXT' value in the list but if I try to select it, the value display empty (un-selectable). Also, if the control source contains a -1, the dropdown list value doesn't automatically display 'FREE TEXT'.
I am getting the feeling that you can't use an index value of -1 (or maybe less than zero)? What I am trying to do is use a dropdown list to display a series of acceptable values eg., APPLE,ORANGES,PEARS,GRAPEFRUIT (with a control source value of 1,2,3,4) but when required, display N/A at the start of the list (with a control source value of 0 - this works fine) and if the users wishes to type FREE TEXT in another control, then can choose the 'FREE TEXT' option that sets the control source to -1. In any other processing code, if the control source has a -1 value (integer column), I know to look elsewhere for the free text value assicated with the control.
FYI, the dropdown list code adds the 'FREE TEXT' option to the list when the Init builds the list, if a property is set true on the control to say that this list should have a 'FREE TEXT' value added at the end of the list.
Any tips on how to achieve this would be much appreciated.
Thank you all so much.
Angie.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only