Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabled when not installed
Message
From
26/10/2006 10:05:17
 
 
To
26/10/2006 09:03:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01164679
Message ID:
01164701
Views:
9
If you know where the .exe is supposed to be you can use:
If FILE( "c:\path\path\lhttseng.exe")
    Thisform.cmdMyButton.visible = .F.  && one or the other or both (belt & braces - suspenders)
    Thisform.cmdMyButton.enabled = .F.
EndIf
>Hi,
>I want to disable a command button on a form when a certain program like lhttseng.exe is not installed on the user's PC. Can anyone help how to achive this? Thank you.
>
>Regards
>
>
>Syah N
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform