VB 6 – Switch Function

The Switch() function works similar to If-Then-Else construct, but in a different way. The function checks few conditions and if one of the condition is passed, then the statement corresponding to that condition is evaluated or displayed.Syntax: Switch FunctionThe syntax of the Switch() function is given below.The switch statement goes through each condition and whichever … Read more

VB 6 Select-Case

In the previous article, you have learned about the if-then-else statements and how you can build a program in VB 6 that work on conditions. The problem with if-then-else structure is that it is very difficult to keep a track of all codes. The Select-Case is a VB 6 feature that allows to select a … Read more

VB 6 – If…Then…Else Statements

The conditional statements are very important to any programming language. In VB 6, the conditional statement change the direction of the program using If…Then …Else construct.The syntax for If…Then…Else is given below.If you look at the above syntax , the conditions are very important for If statements. If the condition 1 is false then another … Read more

VB 6 – UCase() and LCase()

In Visual Basic 6, there are two important functions to change a string to uppercase or lowercase. In this example, you will build a small application that takes a string and returns uppercase or lowercase version depending on user choice.Program Code: UCase () and LCase()First look at the code for first button – UpperCase.Now code … Read more

VB 6 – StrComp()

The strComp() function is a string handling function that compares two given string and returns an integer value. If the strings are same, a 0 is returned and if they are different then -1 is returned.Example Program Code: StrComp()Output: StrComp()

VB 6 – StrConv()

In this example, you will learn about the string handling funciton called StrConv(). That converts the string into following types vbKatakana vbHiragana vbUpperCase vbLowerCase vbUnicode vbWide vbNarrow vbProperCase vbFromUnicode Example Code: Output: StrConv()

VB 6 Static Function

In the previous article, you learned about functions that returned values. The variables that return the value are of two types – global and local. The local variable gets destroyed every time we call the function in our program. The only solution to this problem is to make variable or function retain its previous value. … Read more

VB 6 Declaring Functions

In the previous article, we learned about subroutines. You will learn about VB 6 functions in this article and learn the difference between a function and a subroutine.A Vb 6 subroutine receives an argument but does not return anything. However, a function takes an argument and returns a value. A VB 6 function is a … Read more

VB 6 Declaring A Subroutine

A subroutine is a block of code like function that do a specific task. The difference between subroutine and function is that a subroutine does not return a value. However, you may pass arguments to a subroutine in VB 6.The syntax for subroutine is given below, the keywords within square bracket ([]) are optional.Public keyword … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version