How to prevent a FUNCTION from loading more than once
How to prevent a FUNCTION from loading more than once
How to prevent a FUNCTION from loading more than once
Nolberto Paulino
Regards
Regards
Re: How to prevent a FUNCTION from loading more than once
Code: Select all
FUNCTION MyFunction()
STATIC lIAmRunning := .F.
IF lIAmRunning
MsgBox('Function runs already')
RETURN .F.
ENDIF
lIAmRunning := .T.
* CODE
lIAmRunning := .F.
RETURN xResult
Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: How to prevent a FUNCTION from loading more than once
De nada. 

Best regards,
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."