# Visual Basic Programming Code Examples

## Visual Basic > Database SQL Stuff Code Examples

### Compact a JET database using ADO

For Statement is Typically used to Count a -
The "First section" specifies the starting point for the count. The "Second section" sets the counting limit. The "Last section" determines the "counting frequency". The formula of the

Code convert numbers to roman numerals -
Take a decimal number as input. Check if the number is greater than 1000 or 900 or 500 or 400 or 100 or 90 or 50 or 40 or 10 or 9 or 5 or 4 or 1. If it is, then store its equivalent roman...

C Code Print Fibonacci Series by Recursion -
Program print 'Fibonacci Series' by recursion. "L. Fibonacci" discovered a simple numerical series called Fibonacci Series. Starting with 0 & 1, each new number in the series is simply...

Create strings, shuffle existing strings in C -
C programming code randomize string STR. Sefinitely not cryptographic secure. Strip trailing newline. Pick a random char out of input string. Swap orig char with pick and...

C Programming Sample Reading the Files -
To read the file in C Language, we must open it first using any of the mode, for example if you only want to read the file then open it in "r" mode. Based on the mode selected during

C Programming Selection sort [linked list] -
Load some random values into the linked list. Adds a node at the end of a linked list. If the list is empty, create first node. Go to last node. Add node at the end. Assign data to...

Sorting Elements in Lexicographical Order -
C Language program code 'Sort Elements' in lexicographical order (dictionary order). This program takes 10 words(10 strings) from the user and sorts them in lexicographical order.

Add 2 Distances System Using Structures -
A "Structure Distance" containing two data members (inch and feet) is declared to store the distance in inch-feet system. Here, two structure variables d1 and d2 are created to