Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF then statement plus wildcard???

Status
Not open for further replies.

zishan876

Programmer
Mar 19, 2007
61
US
Hi:
I have the following:
Code:
if (cas.Difference__c == "-1:0-1:0-10:00:000")
//
{
cas.Difference__c ="0"
}
Basically cas.Difference__c can be -1:0-1:0-22:00:000 or -1:0-1:0-37:00:000 ... and I want to so that I can do an wildcard like
if (cas.Difference__c == "-1:0-1:0-"+'*'")
But it is not working... Anyone know how to fix this...
Thanks
 
You are awesome... Thank you
that did work...
One more thing do you know how to format this for example:
instead of 0:01:15:00:000 I would want 01:15 and all...
But thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top