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
I HAVE A SONY VAIO MODEL: VGN-FW351J
What can be done with huge files that cannot be defragmented?
Compare two excel files
how to make an MsAccess form resolution independent?
SQL database issues over ipsec site to site tunnel on Juniper SSG520
var state
CSS issue with hidden menu drop downs
can read ssl.crt/server.crt and ssl.key/server.key on centos about ssl of apache
Safari beach ball when I open it
Unable to install any framework .NET in XP Mode (Virtual PC)