Note the question mark in case the backslash is your Escape Character 
(see string delimiter in help).

Also, note: BAR.Format("MainBar","refresh").  <- This command could 
possibly be added to the "CL functions for setting item attributes" 
page to make it more obvious that it is needed since it has puzzled 
many users including myself at one time.

If (Muted) do
cl.SetIcon("MainBar", 0, ?"c:\winnt\system32\sndvol32.exe", 1)

else
cl.SetIcon("MainBar", 0, ?"c:\winnt\system32\sndvol32.exe", 2)

ENDIF

BAR.Format("MainBar","refresh")
QUIT


Ted



--- In [email protected], "koenie_76" wrote:
> 
> I've tried to implement this feature too, but I get a "bad 
> expression: expecting operator"-error...
> Here's the content:
> 
> If (Muted) then do cl.SetIcon("MainBar", 11, "c:\winnt\system32
> \sndvol32.exe", 1) else  cl.SetIcon("MainBar", 
11, "c:\winnt\system32
> \sndvol32.exe", 2)
> 
> What's wrong with it?
> Koen






Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to