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
Server 2008 NLB problem
jQuery Chained Select Boxes - Three Tiered ( third tier selected )
Exchange 2007 OWA causes 2 audit failures on failed login attempt
Calling a DLL Function Dynamically
Domain trust between Windows Server 2008 R2 and Windows Server 2003
Filemaker Scheduled Import of Tab Delimited File Not Working
Exchange 2007 Certificate Renewal
Exit Ctrl+Alt+F2
Cisco VPN Client 5.0.07.0290 on Windows 7 64 bit
Dell Inspiron 1012 - Multimedia Controller Driver