To Brian D., who emailed the following message to me:
Brian:
Sorry that I won't be of much help. The "Printer Select" project (previously copied to the FAQs) is a project that I have not worked on in two years. Things have faded from memory in that time.
Another problem is that I did not...
Big difference.
String(255, Chr(0)) is a string of 255 null (ASCII zero) characters. The null characters are the usual end of string marker. So, a string of 255 null characters is unlikely to cause string overrun.
String(255, Chr(32)) is a string of 255 spaces. It doesn't necessarily have an...
Hi:
Did you open a document in the Word Application? For example,
WD.Documents.Add Template:= _
"C:\WINDOWS\Application Data\Microsoft\Templates\Normal.dot", NewTemplate _
:=False, DocumentType:=0
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi Barbola:
I tested the textbox SetFocus with an array of textboxes. There was no problem. Can you give the error message that occurs?
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi slyr1338:
You might want to use a label control to display the variable. To update the contents that is displayed, use the code:Label1.Caption = MyVariable, where MyVariable is replaced with the name of your variable.
Welcome to the VB5/6 forum.
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi:
It might help us to help you, if you were to post your connection string and parameters.
One possibility is the wrong cursor type. See Bob Rodes FAQ on ADO cursor types. faq222-3670
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi selimsl:
If you can't use John's suggestion, how about:
Private Sub Label1_Change()
Label1.Width = TextWidth(Label1.Caption)
End Sub
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi Andy:
In Excel 2000, there is the option of saving the file as a Web Page (HTML) file. Granted that Excel, like other HTML-aware MS software, spews a lot of extraneous tags, but it could be a starting place to convert an Excel sheet to an HTML file.
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi
Just a suggestion to follow.
Since you appear to read the file into a RichTextBox okay, why not use the Replace() function to replace the nulls with some character that VB will not interrupt and that will not show up in the original text? For example,
strReplacedText =...
Hi:
In your gADOGetRecordset_RO function, where do you set gADOGetRecordset_RO to the objRecordSet?
Also, it appears that you are missing a "End With" in the gADOGetRecordset_RO function.
Cassie
PIII-500Mhz-128MB
Win98SE-VB6SP5
Hi:
In your Pause sub, I would like to suggest one minor modification.
Change
If GetTickCount = PreTick + Value Then Exit Do
to
If GetTickCount >= PreTick + Value Then Exit Do
to remove the possible endless loop should GetTickCount skip over the value of PreTick + Value.
Cassie
Cassie...
Hi Sajid:
An important use of line numbers is program debugging. If one numbers the lines and adds error handling, then one can determine which line caused the error.
For example, one could do something along the lines of
Private Sub MySub()
10 On Error Goto MyErrorHandler
. . . ...
Hi noun:
As for avoiding the cloning of the methods, one can write the method on one form (declaring the subs as either friend or public) and calling the method from the other forms.
For example, suppose FormA is where one stores the methods and FormB is a form that wants to use the methods in...
Hi all:
I noticed that something was not mentioned that should have been.
One needs to avoid flash rates in the 3 - 10 flashes per second range.
Users who have epilepsy are usually sensitive to visual stimuli in this range. We would not want to trigger seizures, would we?
Cassie...
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.