|
I wanted to avoid installing extra libraries and keep the footprint on the client minimal. I already used a DSN-less connection to the database.
I can instantiate a recordset object so why can't I use the properties you mentioned of the recordset object?
|
|
|
|
|
Feurich wrote: I already used a DSN-less connection to the database.
Which is very common. All a DSN is is a connection string in a text file. Ask some people why their obsessed with using a DSN and they can't give you an answer other than "that's the way I was taught!"
Feurich wrote: I can instantiate a recordset object so why can't I use the properties you
mentioned of the recordset object?
You can, so long as you don't want to do "SELECT * FROM ..." on that RecrodSet object. You can Filter on the RecordSet and alter what it iteractes over, but whether that will do what you want is unknown. Only you can answer that question.
|
|
|
|
|
Feurich wrote: can instantiate a recordset object so why can't I use the properties you
mentioned of the recordset object?
...and because the Select method doesn't exist on the ODBC.RecordSet object. It exists on .NET's DataTable class, which VBScript cannot use unless you write a COM-exposed wrapper class around it as I mentioned.
|
|
|
|
|
Thanks for your reply and time. I'll keep your suggestions in mind and try to keep to my goals while considering your comments.
Best regards,
Eric
|
|
|
|
|
i am doing my project in visualbasic 6.0.In this i need to store and display the id(data) in VB 6.0,which is coming from the arduino usb cable.
tips are welcome...
thanks
|
|
|
|
|
I suggest you promptly abandon VB6 for any development, since it's been a dead for years now, and replace it with VB.NET. You can get a free version here[^].
Then you can research serial communication to talk to the Arduino. Google for something like "VB.NET serial communication".
|
|
|
|
|
Mainstream Support for Microsoft Visual Basic 6.0 ended on March 31, 2005. (I'm gonna put that in the signature, can't be repeated often enough it seems)
That's also the year the Arduino was born.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi brow !!!
What is the code for calling onscreenkyeboard (OSK) in vb.6 please help me.
|
|
|
|
|
Launching an external app is described here[^].
VB6 is deprecated. It's no longer sold, nor supported. I will not be answering much questions on it either.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I am trying to launch Silverlight 5 Out of Browser application without using a bat file. I would like the code contained in one vbscript. This is the code im working with.
Dim objShell,stArgs
strFile = "File Location"
strFileSrc = "URL file"
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Exec("""%ProgramFiles%\Microsoft Silverlight\sllauncher.exe""")
objShell.strArgs("/emulate:""" & strFile & """, /origin:""" & strFileSrc & """, /overwrite")
Set objShell = Nothing
I get the SlLauncher code box but I get
Line 7 Char 1
Error : Object doesn't support this property or method
Code: 800A01B6
Source: Microsoft VBscript runtime error
|
|
|
|
|
ChrisDuti wrote: Error : Object doesn't support this property or method
The method "strArgs" does not exist in the WScript.Shell object. I suggest you concatenate the arguments to the file you want to run, and use the "run" method. Or Google for a different example
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You are correct I forgot to put in strArgs = Agruments
updating now
|
|
|
|
|
Cleaning up the code I put this:
Dim objShell
strFile = "File_Location.xap"
strFileSrc = "Source_Url"
strArgs = "/emulate:""" & strFile & """, /origin:""" & strFileSrc & """, /overwrite"
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Exec("""%ProgramFiles%\Microsoft Silverlight\sllauncher.exe"" " & strArgs)
On launch ... nothing.
|
|
|
|
|
..does it launch if you omit the arguments? If yes, then we should focus on those.
objShell.Exec("""%ProgramFiles%\Microsoft Silverlight\sllauncher.exe"" " & strArgs)
I'd change that to
executeThis = """%ProgramFiles%\Microsoft Silverlight\sllauncher.exe"" " & strArgs
objShell.Exec(executeThis) Thus gives you the opportunity to inspect what's being passed, even if it is using a MsgBox.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
How can I create tables,store procedure, and trigger using vb 2008 installer class during apps installation
|
|
|
|
|
|
Don't forget your any indexes you may have built.
|
|
|
|
|
This is normally done by running create scripts during the installation.
|
|
|
|
|
Please I want restore a database using vb 2008 installer class during Application Deployment.
|
|
|
|
|
|
Is there any way to identify an event that came to an end,
that the event arrived at the End Sub?
Sorry for the misspelled because I can not speak English and used a translator to help me
Thank you
Jonatas Marques
|
|
|
|
|
Only if you put code in the end of the Sub that signals this in some way.
|
|
|
|
|
What I need to do is something like this
Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click
Here runs a function that checks if the btn.Click comes to an end and shoot another routine but this routine can only be triggered when the event comes to an end btn.Click Ex: after the end Sub
End Sub
|
|
|
|
|
Soooooo, in a single threaded environment, this is incredibly easy. Just call the method as the last line of your Click handler. That's a horrible button name, by the way.
Private Sub btn_Click(blah, blah) Handles btn.Click
...some code...
MyOtherMethod()
End Sub
|
|
|
|
|
Ok kkkk promise to fix the name of Button.
But I still have doubts is like MyOtherMethod () to do the check when Private Sub btn_Click (blah, blah) Handles btn.Click end its process
I'm trying to do is this
1 - click on the button
2 - click on the button triggers the event Private Sub btn_Click (blah, blah) Handles btn.Click
3 - The btn.Click event triggers the routine MyOtherMethod () the btn.Click however, have to continue running the remaining code
4 - MyOtherMethod () loop is waiting for the end of btn.Click
5 - When the event finished btn.Click, MyOtherMethod () loop that identifies that event ended btn.Click and runs a code that is out of the loop and ends
What i am not able to do is, call event btn.Click MyOtherMethod () and continue running the rest of the code, which waits btn.Click MyOtherMethod () finish to continue
and also I am not able to make the MyOtherMethod () identifies which ended btn.Click
thank you
Jonatas Marques
|
|
|
|