Advertisement

Results for "Author: matt roberts"

3_2004-2005 #139466
Match() - Check any string for any number of characters.

Simple function to validate string contents. Compares a given string to a list of illegal values and evaluates whether or not it contains any. Very fast and easy. Can also be used as a string search function with a little modification.

3_2004-2005 #140115
Is a certain form open?

Simple API call that tells whether or not a particular form is open. Useful for managing popup forms or a series of forms. Sample usage: If FormIsOpen("Color Picker") Then ' ....Do Something Here Else ' ...Do Something Else Here... End If

3_2004-2005 #141103
Another (very easy) Rounding Function

This code makes easy work of doing simple rounding on decimal number...something that VB currently lacks. Why didn't they think of this?

3_2004-2005 #141953
AlphaBar OCX - Easy sorting of lists using intuitive alphabet control.

Very basic example of creating a user control. This one has actually turned out to be useful in an application I wrote. I kept the features to a minimum in this one so that it would be easier to see how it works.

3_2004-2005 #142303
Outlook-Style Splitter Form

This form can be used as a template for creating dynamic "Outlook" style forms in VB. Each frame resizes independently...and best of all, NO OCX!

3_2004-2005 #142643
Cool Boolean Logic.

Explains the usage of boolean logic in Visual Basic to evaluate complex operations in the terms of "Boolean Logic Gates" ...a concept any electronics techies out there will love.

3_2004-2005 #142657
Best Shell & Wait (No API's!)

Makes it easy to perform a clean "Shell & Wait" where your applicatoin kicks off an external application and waits for it to return before continuing. Many shell & wait examples I have found tend to overdrive the proccessor in a loop or require you to make API calls. This one uses the Windows Script object to take advantage of it's built-in wait parameter on the .Run method...scripting's version of Shell.

3_2004-2005 #142664
List Directory Files

Lists all of the files in a directory matching the pattern entered in the form.

3_2004-2005 #142665
Create your own data types - A basic User Defined Type tutorial

Explains how to create your own custom variable packages that store various data types in one variable and display the elements in the IDE drop-down list while coding. This is a seldom used but very powerful data type in Visual Basic.

3_2004-2005 #142795
Subs, Functions, and Parameters...A beginner's guide.

Explains the concepts of Subs, Functions, and Parameters. If you are a little fuzzy on the difference, take a look.

3_2004-2005 #142807
The Daily Newbie - Using the DateDiff() Function

Newest in the series aimed at teaching newbies (and not so newbies) about the commands that VB has available. This edition gives a basic outline of DateDiff() usage and, as always, some copt-and-paste sample code.

3_2004-2005 #142819
The Daily Newbie - Using the Choose() Function

04/28/2001 - Describes the usage of the Choose() function; A really neat but seldom used command in VB.

3_2004-2005 #142835
The Daily Newbie - Using the Chr() function

To show the usage of the Chr() function.

3_2004-2005 #143127
The Daily Newbie - Using the DateAdd() Function

Explains how to use the Visual Basic DateAdd() function to add and subtract dates.

3_2004-2005 #143160
The Daily Newbie - Using the DatePart Function

Explains how to use the DatePart Function in Visual Basic.

3_2004-2005 #143397
Auto Form Resize

Automatically rescales a form to keep the layout identical at any size. For those of you out there who lock your forms to a certain size because rescaling is such a pain, give this a try...you will love it! NOTE: Although this code works as is, it is JUST AN EXAMPLE. You should be able to take the same logic and apply it to all of your forms, but please note that this example does not handle every type of control. For special controls (dbGrid, etc.) you will have to write a little code yourself to make it work.

3_2004-2005 #143527
Edit Flex-Grid in place.

Amazingly easy method for editing flex-grids in place. This is an example that I created to help someone out who needed to edit a flex-grid in place and didn't want to get a third party grid. It is a good starting point for a custom grid control. Good, bad or ugly, comments are always welcome. M@

3_2004-2005 #143556
The Daily Newbie - Using the App Object

Explains the basics of using the App Object.

3_2004-2005 #143570
The Daily Newbie - Using the Dir() Function

Explains the basics of using the Dir() command to get file and folder information.

3_2004-2005 #143580
Create your own custom parameters list

Ever wonder how to create your own custom list of parameters for one of your functions? You know, like the MsgBox options list with items like vbQuestion, vbExclamation, etc? This article shows you how. It is easier than you might think.

Languages
Top Categories
Global Discovery