Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO CASE vs IF
Message
From
27/12/2000 20:38:25
 
 
To
27/12/2000 20:31:49
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00457199
Message ID:
00457208
Views:
26
Cindy:

Okay, thanks.

Yes, in a normal program I'd agree that microseconds does not matter. But, I'm polling every half-a-second and depending on which method it runs it begins to slow the computer down.

Thanks for you time Cindy :o)

Mal

>>Cindy:
>>
>>Thanks for your reply :o)
>>
>>I did create a test, and still trying diffrent methods. So far, I've found that the IF's return a little faster. Is this a fact or is it just the way I'm setting up my code? Do you see a problem in using a whole bunch of IF/ENDIF's in place of a DO CASE?
>
>I looked in HackFox and didn't see mention of speed issues. Could be that the CASE statements are turned into IFs anyways.
>
>Personally, I think CASE statements are a lot easier to read. Microseconds of speed are seldom important in what I do.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform