code reuse 
Author Message
 code reuse

I have multiple dates on a web page.  I have a script that I use to validate
and insert "/" or whatever.  I currently have used the InputBox_onBlur() and
then inserted the code.  is there a way to just have a Validate(), pass the
modifed date back or insert it into the field?

thanks



Tue, 25 Oct 2005 03:37:20 GMT  
 code reuse
Hi Steve ,

I don't suppose there is an one-step method to achieve this, but you can
take a look FormatDateTime, CDate and IsDate functions. They might help you
figure out a way  to achieve this.

Also, here is a link discussing Time and Date Validation. Though it is in
Javascript, but it may give you some clues if you want to have more
controls on the validating process.

http://www.merlyn.demon.co.uk/js-date4.htm#TDVal

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

Quote:

>Newsgroups: microsoft.public.scripting.VBScript
>Subject: code reuse
>Lines: 8
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165


>X-Abuse-Info: Please be sure to forward a copy of ALL headers
>X-Abuse-Info: Otherwise we will be unable to process your complaint
properly.
>NNTP-Posting-Date: Thu, 08 May 2003 15:26:43 EDT
>Date: Thu, 8 May 2003 15:37:20 -0400
>Path:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!pc01.
webusenet.com!fe04.atl2.webusenet.com.POSTED!not-for-mail

- Show quoted text -

Quote:
>Xref: cpmsftngxa06.phx.gbl microsoft.public.scripting.vbscript:128780
>X-Tomcat-NG: microsoft.public.scripting.vbscript

>I have multiple dates on a web page.  I have a script that I use to
validate
>and insert "/" or whatever.  I currently have used the InputBox_onBlur()
and
>then inserted the code.  is there a way to just have a Validate(), pass the
>modifed date back or insert it into the field?

>thanks



Sun, 30 Oct 2005 19:32:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Code Reuse and the Windows Scripting Host (WSH)

2. Code Reuse

3. Code ReUse Tip

4. FYI: VBPJ's Policy on Code Reuse

5. How do I reuse code in the Code-Behind section of an ASPX page

6. Newbie question-reusing code

7. How to reuse code in Access ?

8. Reuse of Code OCX?

9. Reuse code problem

10. Warning- careful when reusing code

11. Q: Regarding MDI and the reuse of controls and code

12. Reuse of VB3 code into VB5?

 

 
Powered by phpBB® Forum Software