Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anybody been able to do this?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00381450
Message ID:
00381488
Views:
23
>>Even though I've already got this working, you've saved me the trouble of find the constants. Thanks (once more) Mark.
>>
>>BTW, if you don't mind me making a suggestion for the above...I'd use RETURN (lnSuccess > 0) and save the function call. It'll work the same.
>
>I do now. That was a code snippet from an article I placed in the Articles section about 4 years ago. Time to update that article.

Great! The only reason I mentioned it is that I personally think that most folks in general don't know how they can save themselves code and aggravation by modifying the way they handle logical values. For example, how many times have we seen some of the following:
IF lcondition = .T.
  * Just IF lcondition suffices
  * This adds size because of the literal use of .T.
ENDIF
* Or
DO WHILE .T.
  * Same as above, plus
  IF lSomeConditionalExpression
    * Addtional pcode for the second evalution
    * and the EXIT statement
    EXIT
  ENDIF
ENDDO
* Rather than
ldone = .F.
DO WHILE NOT ldone
  ldone = lSomeConditionalExpression
ENDDO
But that's just me.:-)
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform