ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

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 ASP Free Forums Sponsor:
  #1  
Old April 26th, 2000, 03:20 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
What's wrong with this code?

<i><b>Originally posted by : krazy (railz_mem@hotmail.com)</b></i><br />This is the code I use for my text file based counter I created. Can someone tell me what's wrong with it?<br /><br /><script language="VBScript" runat="Server"><br /><br />Sub Session_OnStart<br />Dim strCurr<br />Dim strNew<br />Dim intCurr<br />Dim intNew<br />Set FSO = CreateObject("Scripting.FileSystemObject")<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />strCurr = TEXT.ReadLine<br />TEXT.Close<br />intCurr = CInt(strCurr)<br />intNew = intCurr + 1<br />strNew = CStr(intNew)<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />TEXT.WriteLine(strNew)<br />TEXT.Close<br />End Sub<br /><br /></script><br /><br />The calls that look like they're on 2 lines are actually on one.<br />

Reply With Quote
  #2  
Old April 28th, 2000, 04:52 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : steve</b></i><br />http://aspfree.com/asp/startpage.asp?id=45<br /><br />look at this demo it has a text counter example you can see and download.<br /><br />steve<br /><br /><br />------------<br />krazy at 4/26/2000 1:20:25 PM<br /><br />This is the code I use for my text file based counter I created. Can someone tell me what's wrong with it?<br /><br /><script language="VBScript" runat="Server"><br /><br />Sub Session_OnStart<br />Dim strCurr<br />Dim strNew<br />Dim intCurr<br />Dim intNew<br />Set FSO = CreateObject("Scripting.FileSystemObject")<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />strCurr = TEXT.ReadLine<br />TEXT.Close<br />intCurr = CInt(strCurr)<br />intNew = intCurr + 1<br />strNew = CStr(intNew)<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />TEXT.WriteLine(strNew)<br />TEXT.Close<br />End Sub<br /><br /></script><br /><br />The calls that look like they're on 2 lines are actually on one.<br />

Reply With Quote
  #3  
Old April 29th, 2000, 10:46 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : krazy (railz_mem@hotmail.com)</b></i><br /><br />That's exactly where I got the code from I was asking what's wrong with it.<br /><br />------------<br />steve at 4/28/2000 2:52:42 PM<br /><br />http://aspfree.com/asp/startpage.asp?id=45<br /><br />look at this demo it has a text counter example you can see and download.<br /><br />steve<br /><br /><br />------------<br />krazy at 4/26/2000 1:20:25 PM<br /><br />This is the code I use for my text file based counter I created. Can someone tell me what's wrong with it?<br /><br /><script language="VBScript" runat="Server"><br /><br />Sub Session_OnStart<br />Dim strCurr<br />Dim strNew<br />Dim intCurr<br />Dim intNew<br />Set FSO = CreateObject("Scripting.FileSystemObject")<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />strCurr = TEXT.ReadLine<br />TEXT.Close<br />intCurr = CInt(strCurr)<br />intNew = intCurr + 1<br />strNew = CStr(intNew)<br />Set TEXT = OpenTextFile("C:http
rzcounter.txt",3)<br />TEXT.WriteLine(strNew)<br />TEXT.Close<br />End Sub<br /><br /></script><br /><br />The calls that look like they're on 2 lines are actually on one.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > What's wrong with this code?


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway