Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro running twice
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00184311
Message ID:
00185071
Vues:
24
>>Hi Tim,
>>
>>I think I may have already answered this on the UT, but the correct syntax
>>is:
>>lnhWnd = Is_Run32('someprg')
>>IF lnhWnd > 0
>> * It's running
>>ENDIF
>>
>>Note that the function only searches top-level windows.
>>
>>Hi, George, I am an old Trek fan only.
>>I followed your example above but keep getting zero returned.
>>I am running NT so if I go to task mgr and see whats running,for example telnet.exe, I could use the syntax lnhWnd = Is_Run32('telnet.exe')
>>or lnhWnd = Is_Run32('vfp6.exe')?
>
>Hi Tim,
>
>You need to pass the known portion of the title bar, not the file name. For example: lnhWnd = Is_Run32("Microsoft Visual FoxPro"). The function is case insensitive, and you don't need the complete title. Just passing "Visual FoxPro" or "FoxPro" will work as well.
>
>I resisted the urge to watch TNG for years, but I was channel surfing one evening and came upon it and became an avid fan. Don't closely follow either DS9 or Voyager, though.

It looks like I've got _SCREEN.Caption="FUNDS PROGRAM" so it works on that string. Only thing is I have to allow 1 occurance of it to run or else the program won't run period. It returns a long numerical value.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform