# Visual Basic Programming Code Examples

## Visual Basic > Database SQL Stuff Code Examples

### Read data from a closed workbook using ADO

Compare two Strings in the C++ language -
Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'

Program to Implement Ternary Seach Tree -
Program demonstrates the implementation of Ternary Seach Tree. Create a new ternary search tree node. And insert a new word in a Ternary Search Tree. Search a given word in

Finds Independent Sets in Graph by Graph -
Code finds 'largest independent' set by graph coloring. In graph theory, an independent set or stable set is a set of vertices in a graph, no two of which are adjacent. That is, it is a set I

Concatenate Two Strings strcat() Function -
C program code 'Concatenate 2 strings' using strcat() library function. Logic to concatenate 2 strings in C Programming. Enter first string, enter second string and Concatenate str1 str2

C++ Swap Two Numbers Using 3. Variable -
Swap numbers means exchange the values of two variables with each other. Variable num1 contains 20 and num2 contains 40 after swap there values num1 contains 40 num2 contains

C++ Program Check if it is a Sparse Matrix -
This is a C++ Program code to check 'sparsity' of a matrix. If the number of zeros in a matrix exceeds (n*m)/2, n and m is the dimension of the matrix, matrix is sparse matrix. Enter the

C Checking Armstrong Number of n digits -
Check Armstrong Number of n digits. In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. Example 407 = 4*4*4 + 0*0*0 + 7*7*7

C Code If ch is a printable character or not -
C program code asking the character from user to enter. Returns nonzero if character is a printable character, including a space; otherwise zero is returned. It's printable char.