Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WITH This ... ENDWITH
Message
From
24/09/2007 10:03:58
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
24/09/2007 10:01:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01256274
Message ID:
01256281
Views:
16
>>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'
>>
>>
>
>I'm not sure what the question is. What is 'EventType'? It sounds like it's a property of 'This'. If so, then I don't see anything wrong with what you have above. Does it not do what you expect?

I think Sylvain understood what I was looking for. It works, but wanted to simplify it. Was hoping I could just bookend the block with "WITH THIS.EventType" and "ENDWITH" but it looks like I can't.
Previous
Reply
Map
View

Click here to load this message in the networking platform