# Visual Basic Programming Code Examples

## Visual Basic > API and Miscellaneous Code Examples

### Returning the installation path of a DLL or OCX using a ProgID

Search All Occurrences of a Word in String -
C program to search all occurrences of a word in given string using loop. Input string & word from user. Run a Loop from 'starting index' of string to Length of string - word length. Enter

C Programming code Array Concatenation -
To concate two arrays, we need at least three array variables. We shall take two arrays and then based on some constraint, will copy their content into one single array. We shall

Combinations Using Matrix Multiplication -
A C++ function to find the factorial of a given number using matrix multiplication method. Assigning numbers from "1 to n" to the super diagonal indexes of the matrix and assigning

Finds Factorial of Number using Recursion -
Declare recursive function to find factorial of a number. First let us give a meaningful name to our function, say fact(). Factorial Function accepts an integer input whose factorial is to

Search an Element in a Binary Search Tree -
Construct Binary Search tree for the unsorted data array. 'Search the element' starting from the Root of the Tree. Proceed with the search by comparing an element to the data of node

Program to Create a Random Graph Using -
This algorithm randomly assigns a number of vertexes and edges of the graph. It connects vertexes randomly & generates cyclic, acyclic or disconnected undirected graphs. Generate

C Check a Number is Divisible by 5 and 13 -
Check whether a number is divisible by 5 and 13 or not using if else. A number is divisible by some other number if it gives 0 as remainder. To check if a number is exactly divisible by a...

Insert, Update and Delete value Functions -
This c++ program code is helpful to manage a menu "base database" using array and shows how to prevent from a wrong input. Its simple to introduce the basic database management