Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox question
Message
De
12/12/2008 02:55:16
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01366823
Message ID:
01366841
Vues:
9
The problem is not in the CboDepHow class. When I change the CboUnitType control in FrmDesk.prg to be based on CboDepHow it works fine (waits for an enter

Now I have to consider differences between the two form programs...

Ah, I've got it.
    ***********************************************************************
    **&RS METHOD    txtSTAYcDepHow.valid|
    ***********************************************************************
    **Created.....: &&RS 2008.01.03 PRR3
    **History.....:
    **********************************************************************
    &&RS 2008.01.04 PRR3 TODO: option to wavie deposit
    procedure txtSTAYcDepHow.valid
    WAIT WINDOW NOWAIT 'SET("CONFIRM")=' + set("CONFIRM")
    do case
    case this.value == "CC"
        return this.parent.txtSTAYnParty
        &&RS 2008.01.19 PRR2 TODO: uncomment when implemented: return this.parent.txtSTAYcAutoTag
    case this.value == "CK"
        return this.parent.txtSTAYnDepPaid
    case this.value == "CA"
        return .t.
**      return this.parent.txtSTAYnDepPaid
    case this.value == "ND"
        this.parent.txtSTAYnDepPaid.value  = 0
        return this.parent.txtSTAYnParty
        &&RS 2008.01.19 PRR2 TODO:  return this.parent.txtSTAYcAutoTag
    otherwise
        Msg_RS("<Indicate how the deposit is paid:  CA-cash, CC-credit card, CK-check, ND-no deposit required>.","M")
        return .f.
    endcase
    endproc
When the RETURN statement in the VALID method contains the name of the next control, execution does not wait for another character to be entered.

BTW, CONFIRM was set on.

I'll probably go back to using a textbox instead of a combobox.

Thank you very much for your help. It helped me consider all the possibilities.

Peter
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform