devxlogo

Tip Bank

Get Date and Time Delimiters Without API Functions

Use these easy algorithms to obtain the current Date, Time, and Decimal delimiters used by Windowswithout resorting to Locale Settings or API calls: DateDelimiter = Mid$(Format(Date, _ “General Date”), 3,

Subclassing ChDir

If your application’s current directory is D:OldDir, the callChDir(C:NewDir) will change the C Drive’s default directory toNewDir, but the application’s current directory will remain D:OldDir.It seemed to me that ChDir

GPF in VB.EXE

What do you do when you get a GPF in VB.EXE? Remember that Windows requiresyou to ensure memory integrity when calling API functions. A GPF in VB.EXEcan be produced if

Change Tab Order Sequence

While in design mode, the tab order may get out of sequence, especiallyif you add a control after all the others are set in place. You can setthe TabOrder sequence

To Sync Or Not To Sync (ASYNC) ODBC Queries

Here you are in VB3, you have loaded the compatibility layer for Jet2.0, and you are using ODBC. In this configuration, the ODBC queries willalways run in asynchronous query execution