»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-02-2003, 10:34 PM   #1 (permalink)
Registered User
 
firewolf's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 197
firewolf is on a distinguished road
Send a message via ICQ to firewolf
Scan Text (Visual Basic .NET question)

Does anyone know how to scan a Label for certain text?

Ex.
Label1.Text = System.DateTime.Now.ToLongDateString

How would I be able to scan the date to see if it is a Monday? Or if the month is October? Is there another way to do this?

firewolf is offline   Reply With Quote
Old 10-03-2003, 05:20 PM   #2 (permalink)
Registered User
 
Join Date: Oct 2001
Location: TOO close to Wash DC
Posts: 7,956
vass0922 is on a distinguished road
Hmm in VB you'd use DatePart ... see if its still around for .NET

Then you can say datepart(month, Now()) = "8" for august or something.
__________________
<< Insert exceedingly large and overly verbose message of how 1337 you are here including full specs of every vehicle you've ever driven and PC you've owned >>
vass0922 is offline   Reply With Quote
Old 10-04-2003, 12:23 PM   #3 (permalink)
Registered User
 
firewolf's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 197
firewolf is on a distinguished road
Send a message via ICQ to firewolf
sorry im not familiar with vb, just vb.net, there may be a way to do it with datepart, but if there was, i didnt figure it out, i got it to work using a different method
firewolf is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:22 PM.