Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: IsDate()
PostPosted: October 13th, 2011, 8:21 am 
Offline

Joined: June 9th, 2008, 7:37 am
Posts: 79
Location: Kent, UK
Hi, is there an Opus version of the popular IsDate() function found in VB etc?

I'm trying to validate the date field on a form for job cards, I've found the Date.Parse() function but don't really understand how the return value in milliseconds can help me, I just need a boolean value really.

My aim is to stop people entering 'ASAP', 'whenever' etc in the due date field without resorting to a lengthy lookup table of possible date formats.

Kind regards, Kurt

_________________
Opus Pro 7.04
Windows XP SP3
2GB
Athlon II X2 1.6GHz
ATI RAdeon HD 3200


Top
 Profile  
 
 Post subject: Re: IsDate()
PostPosted: October 13th, 2011, 12:44 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Nothing springs to mind. But if you just after blocking the entry of 'ASAP' etc, then just turn off the letters input for your text box.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: IsDate()
PostPosted: October 13th, 2011, 12:58 pm 
Offline

Joined: June 9th, 2008, 7:37 am
Posts: 79
Location: Kent, UK
That is a fantastic idea Mackavi, I really can't see the wood for the trees today... :-)

Kind regards, Kurt

_________________
Opus Pro 7.04
Windows XP SP3
2GB
Athlon II X2 1.6GHz
ATI RAdeon HD 3200


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group