Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WITH This ... ENDWITH
Message
De
24/09/2007 09:59:56
 
 
À
24/09/2007 09:51:42
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01256274
Message ID:
01256277
Vues:
10
Your code sample is OK for the DO CASE. If you have several references of the object inside the CASE, the you can use code like this:
WITH THIS
    DO CASE
    CASE .EventType = "A"
        WITH .EventType
            .Code = "S12"
            ...
        ENDWITH
    ...
    ENDCASE
ENDWITH
HTH

>I want to use "WITH THIS.EventType" but how do I handle the CASE .EventType? Something like .Value? Or can I not have an object.object this way?
>
>
>		WITH THIS
>			DO CASE
>				CASE .EventType = 'A'
>					.EventType.Code = 'S12'
>
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform