Monday, January 26, 2009

How to display date and time using vb6.0?

Getting the time and Date in your computer basically its easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that put timer in your form too.
Timer1 is the default name of the timer and set timer interval into 10. And double click your form which is your form1 and after that i want you to put this code inside your form load() . label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program. You can download my example below.. Thats all!
















Download File

How to display date and time using vb6.0?

You may set first the TIME and DATE of your system i mean you computer because there are some cases that the time and date in your computer is not set so may set first before doing some actions inyour visual basic 6.0.
Getting the time and Date in your computer basically its very easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that i want you put 1 command button inside you form which is command1. And double click your command button put this code inside command1_click() label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program and try to click your command button and it will automatically appear the time and date. You can download my example below.. Thats all!















You can download my example below.


Download File

How to use for each statement in Php?

I have here an example using foreach statement in Php the first thing you need to do
is to open notepad but if you have dream weaver or other software editor is OK.
Php has several conditional and loop statements that have been part of the
language since its creation. Unlike them, the foreach statement is one
of the loop statement influenced by other programming languages that
used foreach for years. For example java. Unlike the other conditional and loop
statements, the foreach statement is used only on arrays so basically foreach statement
accept only variable arrays. I have here an example that you can download using foreach statement.. You can post comments or question about other entities in Php or other languages.

You can download my example below.

Download File

How to use toLowerCase in java?

toLowerCase() is one the basic method of the string class.
I have here and example using toLowerCase() method converting the Upper case text into
lower case.

Example my name:

String name ="JOHN EMISYL PALER"; Declaration of variable.
To convert my name into lower case form heres the following syntax.

System.out.println(name.toLowerCase());









You can download my example below.

Download File

How to use toUpperCase in java?

toUpperCase() is one also of the basic method of string class in java like toLowerCase() method.
toUpperCase() method is opposite of toLowerCase() method. toLowerCase() is converting Upper case text into Lower case. They have different action dealing with Strings or Text. I have here an Example for toUpperCase() method.

Example:

String name="john emisyl paler";

System.out.println(name.toUpperCase());













You can download my example below.

Download File
 

blogger templates | Make Money Online