I have a similar problem to the one (which wasn't resolved) in thread183-883502, which I hope someone can clear up.
I am attempting to import a CSV into a table in VB:
Set objConn = New ADODB.Connection
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sPath & _...
Hello.
I am opening a recordset using ADO 2.6 in a program written in VB6 Service Pack 5 on Windows XP Professional SP2. The database I'm using is Oracle 9i.
I open the recordset like this:
oRSItems.Open sSQL, Globals.adoConnection, adOpenKeyset, adLockPessimistic, adCmdText
This returns...
I am using the FileSystemObject's TextStream object to create and write a file.
First I create the FileSystemObject and then check that some folders exist, creating them if not.
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FolderExists(App.Path & "\DATA") = False Then...
I have a VB program which uses Crystal Reports 8.5 ActiveX Designer Design and Runtime Library (craxddrt.dll). I want to open a report using the CRAXDDRT.Application object, but a Windows system error is occurring when the OpenReport method of the CRAXDDRT.Application object is used.
First, a...
I have a VB program which uses Crystal Reports 8.5 ActiveX Designer Design and Runtime Library (craxddrt.dll). I want to open a report using the CRAXDDRT.Application object, but a Windows system error is occurring when the OpenReport method of the CRAXDDRT.Application object is used.
First, a...
These procedures work fine, but what if the string contains a < or a > that isn't an HTML tag. If you had string such as:
<HTML><HEAD><TITLE>This is the title</TITLE><BODY>The number 5 is < the number 6.</BODY></HEAD></HTML>
Then the text you would get would be truncated like this:
This is...
Is there a way of distinguishing between when a user clicks on a control, and a Click (or other events like Change or whatever) that are generated when some code is executed that fires the event (such as when you change the ListIndex of a combo box and its Click event is automatically fired)?
I...
Craig
Yes, I finally opted for the simpler method of just using the control itself rather than a pointer to it. Should've thought of that earlier really. Dah well.
Yes, what I was after is something like this:
The user clicks a control (any control, on any form in the project). Attached to the the code for each control would be something like:
Private Sub Command1_Click()
isClickCorrect (UniqueIDForControl)
End Sub
Then isClickCorrect would be along...
Within a VB project, does each control (i.e. every control on every form in a project) have a unique ID, other than its full name (e.g. frmMain.cboAddressLine1 or whatever)? Something like a number that can be read so you can tell which control was clicked on from a single procedure? I don't...
Quite a specific problem, this. I have a VB program that simulates a piece of software. The user has to perform tasks in a certain way to learn how to use the simulated software. Each control has a unique ID number. When clicked, the ID is passed to a procedure to see if the user clicked on the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.