Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clearing Combo Box Choices
Message
De
27/04/1999 11:47:39
 
 
À
27/04/1999 11:33:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00211482
Message ID:
00212512
Vues:
30
>Hi Ed:
>
>I have a question pertaining to the code you sent me a few days ago. I am trying to have a cmd button clear all the choices a user makes on my search form.
>
>I want a user to be able to clear selections they make on a search form, and start over, w/o having to open and close the form to clear it. The code you gave me works in some situations, and other instances I get an error message.
>
>Let me explain:
>
>I placed the code> Thisform.setall("value"," ","combobox") in the click event of my cmd button.
>
>When a user selects a value for each of my 6 combo boxes and presses my CLEAR cmd button, the values dissappear from view and the user can select choices again. That is perfect! I can do that 100 times, selecting a value for each of the 6 combos, and it works.
>
>However, if the user goes back (after selecting a value for each of the 6 combos the FIRST time) and only goes as far as the third combo box and decides to clear again, I get an error message that says "out of range" ... I forget the specific error message, b/c I am not at my home computer to check. It may say "record out of range".
>
>I was wondering if you knew why I was getting that error message, and if you know of a solution to fix this?
>
>Thanks in advance
>Jason

It could be few reasons here. Firstly, I would try Thisform.setall("displayvalue"," ","combobox"). Then I would unbind combos (controlsource=""). Then I would make sure that you do not have temp relationships.
Honestly, I would start with disbanding your views, but this is another story :-).
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform