Most system that involve payment required the converted word it's numerical value but the problem is, Visual Basic 6 don't have any built in function to this. Because of this we created a function that convert number to word. This function can convert up to 9 hundred thousands since we don't need to convert values higher than this. Adding more than 9 hundred thousands is easy, if you want to implement this to your system just copy the code below.
Tuesday, August 13, 2013
Saturday, August 10, 2013
Auto Resize Flexgrid Column Depending On Content In Visual Basic 6
Flexgrid is one of the most used controls for report generation in our programming firm. Recently, we required to have a function the will automatically resize the Flexgrid column depends on the column content. If you are somehow problematic about this method then you may try the code below if it will suit to your need.
Tuesday, August 6, 2013
Convert Number To Ordinal Number Format In Visual Basic 6
Converting ordinal number in Visual Basic is you only need to create a few If...Else statement that will compare your values and concat the appropriate word to put (th, st, nd, rd and th). Using the function below, you can transform a number to it's corresponding ordinal number format.
Sunday, March 10, 2013
Reset Form Contents In Visual Basic 6
There is some instances where the previously inputted values before we close the form Visual Basic 6 is still intact. Some developers suggest to manually clear all contents of the object but if you have hundreds of objects on a Form, then this will be a problem. Using the code below, you can easily reset a Form without manually clear all contents.
Wednesday, February 13, 2013
Forcing VB 6 Run Time To Stop
Stop button in visual basic application is very standard when you want to immediately close your project run time. But if you can't close your project during run time because the stop button is not functioning then this is a big problem!
Sunday, February 10, 2013
Clear all Textboxes On A Form In Visual Basic 6
Clearing TextBox in VB is easy, you can simply do this using code below.
//Assume that the object name of the Textbox is txtSample
txtSample.Text = ""
The code above is very reliable when you have only 1 up to 20 TextBox object but if you have 20 or more TextBox objects, this will be unworthy for your effort. To clear all TextBox objects in a form, you will need some simple steps below.