vb6 Questions
3
Solved
I'm trying to filter records using "Like" with asterisks, it works when using Access 2010 returning many records. I'm stumped why it returns nothing when used with ADO. The code includes multiple t...
9
Solved
Microsoft no longer supports VB6 development and support from Microsoft has already stopped. But VB6 applications still run on Windows 8.1. See also this article titled "Support Statement for Visua...
11
Solved
In VB6, the Trim() function trims spaces off the front and back of a string. I am wondering if there is a function that will trim not just spaces, but all whitespace (tabs in this case) off of each...
1
Hi have a vb6 project "PROJVB6" with a class "CLASSVB6" with this content:
...
Public Type ActualParametersType_DOCUMENTI
Codice As Variant
Numreg As Variant
End Type
...
Private Gvar_ActualPar...
Thoroughbred asked 12/10, 2016 at 8:8
4
Solved
For the 10+ years I've been using VB6, every now and then I get a "ByRef argument type mismatch" error where I simply can't find the mismatch. After struggling for a while I've always punted by for...
Caputo asked 27/3, 2009 at 1:25
8
Solved
I have an input box asking user to enter a date. How do I let the program know to stop if the user click cancel or close the input dialog instead of press okay.
Something like
if str=vbCancel then...
6
Solved
How do I get the current GLOBAL mouse cursor type (hourglass/arrow/..)? In Windows.
Global - I need it even if the mouse is ouside of my application or even if my program is windlowless.
In C#, D...
2
In FreeBasic, IIf (A, B, C) is equivalent to A ? B : C in C/C++/Java/C#, If (A, B, C) in VB.NET, and B if A else C in python. However, in VB6, Office VBA and VB.NET, IIf (A, B, C) is equivalent to ...
1
I had to convert some VB6 code to VB.net using the old VS2008 conversion tool. That tool helpfully inserts warning comments when it was not sure that the original & converted code was equivalen...
Dunaj asked 15/8, 2022 at 14:41
13
Solved
I want to make a TextBox control that only accepts numerical values.
How can I do this in VB6?
9
Solved
How do I test if optional arguments are supplied or not? -- in VB6 / VBA
Function func (Optional ByRef arg As Variant = Nothing)
If arg Is Nothing Then <----- run-time error 424 "object requi...
Magpie asked 2/11, 2009 at 11:38
7
Solved
So I have something like the following in Vb6;
Select case Case
case "Case0"
...
case "Case1"
if Condition Then
Exit Select
End If
*Perform action*
case "Case2"
...
End Select
But for so...
Galen asked 23/5, 2012 at 14:55
3
Solved
VB6 IDE can get into a state when the Make XXXX menu option under the File Menu is disabled.
2
I've set property ShowInTaskBar to true, but my application is not visible in taskbar.
Form has minimize, maximize and close buttons. When I click minimize, form minimizes to a small form in the bo...
Geiss asked 31/1, 2011 at 9:25
3
Solved
I'm trying to get the dimension of an array via PeekArray and SafeArrayGetDim API,
But the "Type mismatch" when compiling.
And if Debug.Print SafeArrayGetDim(PeekArray(TestArray).Ptr) wil...
6
I am programming to generate keys in hexadecimal using different random function and write it in the text file. I have only two cmd buttons and status bar which displays the current time and the st...
Strang asked 20/12, 2008 at 10:15
4
Solved
I have an updater program, the pulled files from server has mixed vb6 dll and .net DLLs in one directory.
How to determine if a dll is a COM one? (so i can invoke regsvr32 to it from the updater ...
4
Solved
Probably a question that has been asked before. Please guide me to any questions that might answer my question...
I have a VB6 .exe that calls a VB6 .dll. I would like to debug the .dll from the ....
Kohler asked 16/3, 2011 at 18:47
17
Solved
After windows update installed security update KB2687323, my VB6 project fails to load. Displayed error message is "'[project_vbp_path]/MSCOMCTL.OCX' could not be loaded--Continue Loading Project?"...
Tchao asked 16/8, 2012 at 7:43
3
Solved
I would like my VB 6 application to detect and display the version of Windows that is running on.
I have tried this code from another Stack Overflow question, but it does not work for me. It displ...
Expectorant asked 29/6, 2016 at 14:26
16
Solved
I am trying to consume a web service in VB6. The service - which I control - currently can return a SOAP/XML message or JSON. I am having a really difficult time figuring out if VB6's SOAP type (ve...
Underprop asked 6/5, 2010 at 15:3
4
Solved
How can I determine the Windows default browser (at the top of the start menu)?
I am using VB6 but can probably adapt other code no problem.
There are similar questions on Stack Overflow, but the...
17
Solved
Given
Dim arr1 As Variant
Dim arr2 As Variant
Dim arr3 As Variant
arr1 = Array("A", 1, "B", 2)
arr2 = Array("C", 3, "D", 4)
Question
What kind of operation...
17
Solved
What is the alternative to \n (for new line) in a MsgBox()?
3
We have a .NET 3.5 assembly (dll) being executed by a VB6 "Agent" (exe) via COM interfaces. The VB6 code does call:
' Ensure that no system dialog comes up when we GPF.
PreviousErrorMode = SetErro...
Thermoelectric asked 6/10, 2016 at 15:45
© 2022 - 2025 — McMap. All rights reserved.