HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

in asp
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> ASP
View previous topic :: View next topic  
Author Message
savita



Joined: 18 Mar 2005
Posts: 17
Location: jamshedpur

Posted: Mon Aug 08, 2005 7:56 pm     in asp  

I m getting the problem in understanding the following code can any one help me :cry:

if page<>"" then
page1 = mid(page,1,instr(1,page,",")-1)
if len(page)=4 then
statValue = mid(page,instr(1,page,",")+1,1)
else
statValue = mid(page,instr(1,page,",")+1,instr((instr(1,page,",")+1),page,"3")-1)
end if
end if
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

Posted: Tue Aug 09, 2005 7:04 am      

It's just manipulating a string value to get a desired result.

You can get a run down on the functions used here
http://www.w3schools.com/vbscript/vbscript_ref_functions.asp
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> ASP
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group