Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH This ... ENDWITH
Message
From
24/09/2007 09:59:56
 
 
To
24/09/2007 09:51:42
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01256274
Message ID:
01256277
Views:
11
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'
>
>
Previous
Reply
Map
View

Click here to load this message in the networking platform