Short Description
|
Time
|
Entered
|
By:
gaucho
When: 2000-03-16 16:51:35 Build: 2.0.7A GA
|
Categories
|
Type:
Question
Department: Product
Category:
Not Categorized
|
Description
|
HI Bill,
Is there a variable that will return the current time?
Chuck
|
|
Append
|
By: WindSurfer When: 2000-03-20 12:42:48 New Status:
Pending Customer
|
Comment
|
Hmmm, no variable, but the Now() function has a variety of
forms, one of which includes the time in specific locations
inside the returned string--you can then parse with the
TextMid() function to extract current time.
Sorry for the delay answering this--fell through the cracks
due to an e-mail server reboot.
|
|
Append
|
By: gaucho When: 2000-04-04 19:05:30 New Status:
Pending IE
|
Comment
|
Hi Bill,
I've used the minute function to extract the minutes of a
time and have assigned that value to a string (test). Yet
I would like to assign that same value to a variable in
screen surfer. Here is my code:
********
<Script language="VBscript">
DIM Test
Test = Minute(Now())
</script>
<TEDECLARE VAR NAME="Minute" TYPE="int" LENGTH=2 DATA="">
**assign Test to Minute**
<teset minute = "test">????????
<TEIF Template.Minute=30>
<td>etc. etc. etc.
********
I hope that wasn't confusing. Any information on this
would be greatly appreciated.
Thanks,
Chuck
|
|
Append
|
By: WindSurfer When: 2000-04-04 19:15:04 New Status:
Pending Customer
|
Comment
|
Chuck,
You've been bitten by the server-side/client-side confusion
spider.
Your VBscript is running at the client, while your variables
are running at the server...not the same place!
There is a Screensurfer Now() function which you can combine
with the TextMid function to get the same result, as in
<teset minute=TextMid(Now("local",5),14,2)>
There might be an error in my offsets, but testing should
demonstrate if it works or not!
|
|
Append
|
By: gaucho When: 2000-04-10 19:21:50 New Status:
Closed
|
Comment
|
Thanks Bill,
Everything works great!!!
Chuck
|