Subject |
Re: AutoDropNot |
From |
Tom <IHaveNoEmail@ddress> |
Date |
Wed, 7 Nov 2018 06:06:22 -0500 |
Newsgroups |
dbase.getting-started |
On 11/7/18 2:46 AM, Mervyn Bick wrote:
> On 2018-11-07 12:00 AM, Tom wrote:
>
>> Try the attached. This is what I have been struggling to do. :)
>> Fond memories of Marko. Good guys like you and him are hard to find.
>> Monkey see, monkey do works well for me.
>
>
> Looks good. One small thing though. There's a lot of repeated code
> throughout. Any time you find yourself using the same code more than
> once it's a good idea to factor the code out into a separate function.
First you get the code to work, then you dress it up for show.
>
> I've moved two blocks of code into the functions create_cholla and
> sort_array.
>
> If you are going to use this construct often the next thing is to create
> a custom entryfield control where the associated combobox is created
> "behind the scenes" and all you need to do in the form is supply the
> array for the combobox. (Nothing is impossible if you don't have to do
> it yourself. :-) )
>
Already have a custom combobox waiting in the wings. Trying to be one
step ahead of you which is no easy task.
> Mervyn.
Regards,
Tom
|
|