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
Excel 2007 Can Not Display Images From Web
Java synchronized Thread issue
Custom toolbar query view...
Error while archiving folder "IPM_SUBTREE"
Access is denied, unable to remove device when trying to delete a printer.
Error running DC Promo on Windows 2008 R2
DameWare vs. RDP
Brother All in One Scanner corrupting scanned images
Just installed AJAX Toolkit - ToolkitScriptManager error -- "unknown server tag"
USB meters