ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 19th, 2012, 08:40 AM
hack-club hack-club is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 2 hack-club User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 48 sec
Reputation Power: 0
Post Problem in condition by ( Sub Type variables )

please ... help me this code :



DateSYSTEM = FormatDateTime(date)
RepDateSYSTEM = Replace(DateSYSTEM, "/", "")
response.Write RepDateSYSTEM & " = RepDateSYSTEM<br><br>"


DateUSER = "19/05/2012"
RepDateUSER = Replace(DateUSER, "/", "")
response.Write RepDateUSER & " = RepDateUSER<br><br>"


Response.Write (TypeName(RepDateSYSTEM)) & "<br>"
Response.Write (TypeName(RepDateUSER)) & "<br>"

' Here to fully and gave the result that the type variables RepDateSYSTEM RepDateUSER and type the text String




' The problem is that it deals with the value of the variable RepDateSYSTEM type the text String

strVar1 = RepDateSYSTEM
If isNumeric(strVar1) Then
Response.Write "ok1"
End If





' The problem is that it deals with the value of the variable RepDateUSER type the Numeric

strVar2 = RepDateUSER
If isNumeric(strVar2) Then
Response.Write "ok2"
End If


'How do I make the required variables of the type digital together or String together so that I can successfully achieve the following condition:

if RepDateSYSTEM = RepDateUSER then
response.Write "yes <br>"
else
response.Write "no <br>"
end if



Thank you all ...

Reply With Quote
  #2  
Old May 19th, 2012, 11:29 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,237 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 47 m 12 sec
Reputation Power: 4445
vbscript has various type conversion functions like CStr(), CInt(), etc. Check the vbscript documentation in the msdn library for details.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old May 19th, 2012, 03:28 PM
hack-club hack-club is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 2 hack-club User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 48 sec
Reputation Power: 0
Post

Thank you dear

I test it and give you a response

Thank you ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Problem in condition by ( Sub Type variables )

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap