Quick Test for Weekend
To test whether a date falls on a weekend, you might be inclined to do this: nDay = weekday (sDate)If (nDay = 1) or (nDay = 7) Then ‘It’s a
To test whether a date falls on a weekend, you might be inclined to do this: nDay = weekday (sDate)If (nDay = 1) or (nDay = 7) Then ‘It’s a
These two routines enable you to get the height of an item of a list box in terms of pixels, and they also enable you to set the height of
Creating an object that looks and acts like a collection is a good wayto implement a form of inheritance in VB4, where inheritance is not providedby the language. Creating properties
In many places, I include Error$ as picked up in an error trap in a descriptive message. I use a function to expand its meaning. I call the function TSS
Assume that you have the full path name of a file, and you need to beable to tell if the drive is writeable (that is, if it is a CD-ROM
While developing MDI applications in VB 4.0, you probably have noticed that the cursor on the MDI child disappears when you click on the toolbar on the MDI parent. You
Microsoft is currently working on a printing problem. Visual Basic 3.0 applications running in Windows 95 cannot print to shared printers with an embedded space. If a shared printer has
The StartMode setting in the Options dialog of the Tools menu in VB4determines only whether an application with no startup form continues torun after Sub Main has completed. This allows
When in NT or Windows 95, use the Sleep API function instead of DoEvents.DoEvents does this: while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg);} DoEvents spends part of its