W willisgt Active Member Licensed User Dec 12, 2007 #1 :sign0163:I've got a quick little snippet of code that's behaving oddly. B4X: myArgs = "http://www.radtechs.org" Shell( "explorer.exe", myArgs ) It pulls up two Explorer windows when running on the desktop. I'm running Windows XP w/.Net 1.1 and 2.0, Basic4PPC v.5.8. Surely I'm not doing something wrong for once? Gary :sign0163:
:sign0163:I've got a quick little snippet of code that's behaving oddly. B4X: myArgs = "http://www.radtechs.org" Shell( "explorer.exe", myArgs ) It pulls up two Explorer windows when running on the desktop. I'm running Windows XP w/.Net 1.1 and 2.0, Basic4PPC v.5.8. Surely I'm not doing something wrong for once? Gary :sign0163:
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2007 #2 Only one window here: B4X: Sub App_Start Form1.Show myArgs = "http://www.radtechs.org" Shell( "explorer",myargs ) End Sub
Only one window here: B4X: Sub App_Start Form1.Show myArgs = "http://www.radtechs.org" Shell( "explorer",myargs ) End Sub
agraham Expert Licensed User Longtime User Dec 12, 2007 #3 Are you invoking it in an event - maybe the event is firing more than once. You can use a global variable as an event counter, increment it in the event and check it to see how many times the event is fired.
Are you invoking it in an event - maybe the event is firing more than once. You can use a global variable as an event counter, increment it in the event and check it to see how many times the event is fired.
W willisgt Active Member Licensed User Dec 12, 2007 #4 I was doing something wrong. Again. Solution: If a button is created dynamically, it does not need an event added to it to handle a click event. For instance, create a button called 'wubba'. Create a subroutine called wubba_Click. No need for an AddEvent for the click to be handled. Oops. Gary
I was doing something wrong. Again. Solution: If a button is created dynamically, it does not need an event added to it to handle a click event. For instance, create a button called 'wubba'. Create a subroutine called wubba_Click. No need for an AddEvent for the click to be handled. Oops. Gary