|
-
Mar 6th, 2006, 02:01 AM
#1
Thread Starter
Lively Member
help pls. im a newbie
how can i add a date and time in a labelbox and how can i know the location of my program
thanks!!!!
-
Mar 6th, 2006, 02:04 AM
#2
Re: help pls. im a newbie
Here you go
VB Code:
Label1.Caption = Now() 'Shows date and time
Label2.Caption = App.Path 'Shows the location of your app
-
Mar 6th, 2006, 02:05 AM
#3
Frenzied Member
Re: help pls. im a newbie
to add a date, use the date function, it returns the current date of your system
to add the time, use the following code
VB Code:
label2.Caption = format(now,"hh:nn:ss AMPM")
to view the location of your application, use the App.Path
On error goto Trap
Trap:
in case of emergency, drop the case...
****************************************
If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option. if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|