Microsoft
Software
Hardware
Network
Question : Another way of coding this
I have this code in
OnPreRender
event. I tried IF statement but it didnt work. Below works for ONE value but when I add the other 2 lines, of course, it only takes the value of 3rd line.
Not sure why IF statement didnt work. Maybe because it's onPreRender event. How can I write this WITHOUT using IF?
btnNA.Visible = mvApplication.ActiveViewIn
dex == 1; //this works but i need all 3 values
btnNA.Visible = mvApplication.ActiveViewIn
dex == 2;
btnNA.Visible = mvApplication.ActiveViewIn
dex == 3;
Answer : Another way of coding this
What do you want? Do you want to make it visible if it's one of those ActiveViewIndex'?
Because if so do this:
btnNA.Visible = (mvApplication.ActiveViewI
ndex >= 1 && mvApplication.ActiveViewIn
dex <= 3);
Random Solutions
parse url in JavaScript
Http dynamic Compression not work if We using text/html
FTP not working on Windows Server 2008 IIS 7
IIS Web site works in all browsers except Safari on Mac
create xml script using coldfusion
Connecting Outlook 2010 to an exchange server remotely
Microsoft access 2010 pegs the CPU
GFI 2010 Limits exchange 2003 incoming email 2 mb! ARGH!
How do I delete some lines in a text file?
ESXi compatible hardware