dim (97)


ios - How do I prevent the iPhone screen from dimming or turning off while my application is running?

ios - How do I prevent the iPhone screen from dimming or turning off while my application is running?

I'm working on an app that requires no user input, but I don't want the iPhone to enter the power saving mode. Is it possible to disable power saving from an app?…


VB.NET Strong-typed collection

I want to create a collection in VB.NET, but I only want it to accept objects of a certain type. For example, I want to create a class called "FooCollection" that acts like a collection in every way,…


How to avoid Outlook security alert when reading outlook message from C# program

I have a requirement of reading subject, sender address and message body of new message in my Outlook inbox from a C# program. But I am getting security alert 'A Program is trying to access e-mail ad…



InternetExplorer automation object+PerformanceCounter=not working?

I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific URL(IE only). So I wrote this component and everything works fine, so I integrated i…


The VB.NET 'With' Statement-embrace or avoid?

At work, I'm frequently working on projects where numerous properties of certain objects have to be set during their construction or early during their lifetime. For the sake of convenience and readab…


MSXML2.XMLHTTP send method works with early binding, fails with late binding

The code below works. But if I comment out the line Dim objRequest As MSXML2.XMLHTTP and uncomment the line Dim objRequest As Object it fails with the error message:The parameter is incorrect Why…


Misunderstanding of Long data type in VBA

From the help for the Overflow Error in VBA, there's the following examples: Dim x As Long x=2000*365 ' gives an error Dim x As Long x=CLng(2000)*365 ' fine I would have thought that, since…


What does the keyword Set actually do in VBA?

Hopefully an easy question, but I'd quite like a technical answer to this! What's the difference between: i=4 and Set i=4 in VBA? I know that the latter will throw an error, but I don't fully un…


What is the difference between Dim v As String() and Dim v() As String?

This may sound trivial, but what is the difference between Dim v As String() and Dim v() As String in VB.NET?…


Fade in multiple LEDs with Arduino

I need to figure out how to fade in and out of multiple LEDS in a function with an Arduino. Can't use delay() because other things need to run while the light is fading. This is what it has so far, b…




android background vba screen programmatically transparent dialog variable and how