Author: Jack Skelley, skelley@newjerseydevils.com
Posted: 1999-09-01 at 15:01:53
Dan:
1. Not sure what *quickfill capability* is...But you can go through the list in
FPW26 by pressing a key on the keyboard to position the list. It's like an
incremental search in VFP6.
2. In the valid to the control enter:
_curboj = objnum(next_control) &&next_control is the variable of what
control is to receive the focus
show get next_control &&select that next control to receive focus
3. if the drop down doesn't have what the user needs you can provide the user
with an *other* field; the valid to the *other* text box can then manipulate an
array which feeds the drop down. Something like this...
dimension some_array(alen(some_array) + 1) &&array made larger by one; drop
down is populated by array *some_array*
some_array(alen(some_array)) = text_box_value &&equate new subscript with text
box value for *other*
hold_value = text_box_value &&save this value to later position drop down
text_box_value = "" &&empty text box
show get text_box_value &&show the empty value in the other text box
=asort(some_array) &&rearrange the array so it is sorted (if you wish)
var_for_drop_down = ascan(some_array, hold_value) &&position drop down with new
value
show get var_for_drop_down &&refresh the drop down
HTH
Jack Skelley
skelley@newjerseydevils.com
Dan Neuman wrote:
> Can someone answer a few questions about popups in FPW26?
>
> 1. How to create quickfill capability (or a way to go through the list using
> the keyboard)?
> 2. How to leave control on [enter] key press?
> 3. How to add "on-the=fly" adding of fields when drop-down does not contain
> the needed value?
>
> TIA,
> Dan Neuman
> PC Advisors, LLC
>