Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code it better
Message
From
19/08/2008 12:41:43
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01339981
Message ID:
01339997
Views:
13
>>I was thinking replacing this
>>
>>
>>IF PEMSTATUS(_VFP, [ActiveProject], 5) AND ;
>>    [O] = TYPE("_VFP.ACTIVEPROJECT") AND ;
>>    !EMPTY(_VFP.ACTIVEPROJECT.HOMEDIR)
>>
>>	* Do something
>>ENDIF
>>
>>
>>With
>>
>>
>>IF [C] = TYPE([_VFP.ACTIVEPROJECT.HOMEDIR]) AND ;
>>    !EMPTY(_VFP.ACTIVEPROJECT.HOMEDIR)
>>
>>	* Do something
>>ENDIF
>>
>>
>>Any better suggestion?
>
>I think the second variation is OK as is. What is the bigger picture?

Isn't
IF [U] <> TYPE([X1.X2...Xn])
much simpler than
IF PEMSTATUS(X1, [X2], 5) AND PEMSTATUS(X1.X2, [X3], 5) AND ... PEMSTATUS(X1.X2. ... .Xn-1, [Xn], 5)
So when would one wants to use PEMSTATUS(,, 5) in a IF structure?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform