Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 VB Strings, choping and processing.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nathan
Help Moderator

USA
7664 Posts

Posted - 07 March 2002 :  22:35:51  Show Profile  Visit Nathan's Homepage
Given enough time I could probably figgure this out on my own, but so far I've only given myself a headache.

What I need to do is take a string, find a spacific substring or 'tag' within the string and the corrisponding 'closing tag' I need to isolate the string between the two tags and send it though a function that I have already prepaired. (It works nicely too ) Then I need to replace the origional string chunk with the value returned from the function.

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 March 2002 :  22:45:54  Show Profile
take a look at the ReplaceImageTags function in the inc_functions.asp file.
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 07 March 2002 :  23:39:43  Show Profile  Visit Nathan's Homepage
Thanks

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 08 March 2002 :  00:12:38  Show Profile  Visit Nathan's Homepage
It works great!

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 08 March 2002 :  00:55:06  Show Profile
Are we going to get to see what this "It" is?
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 08 March 2002 :  01:11:10  Show Profile  Visit Nathan's Homepage
Its not finished yet, still gotta add all the bells and wistles

I believe it is on your wish list too . . .

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 08 March 2002 :  04:34:57  Show Profile  Visit Gremlin's Homepage
Not even a little hint Nathan

www.daoc-halo.com
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 08 March 2002 :  18:33:34  Show Profile  Visit Nathan's Homepage
Not yet, I but do be watching the mods forum either tonight or sometime tomarrow

  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 08 March 2002 :  18:52:59  Show Profile
Nathan, this is what I used in http://www.istanbulmuzesi.org to deal with multi-language forums.


function doLangCode (fString)
DIM i, s, fOTagPos, fCTagPos, fOTag, fCTag
'get the correct language part
fOTag = "[" & strLangLCID & "]"
fCTag = "[/" & strLangLCID & "]"
fOTagPos = Instr(1, fString, fOTag, 1)
fCTagPos = Instr(1, fString, fCTag, 1)
if (fCTagPos > 0 and fOTagPos > 0) then
s = mid(fString, fOTagPos + len(fOTag), fCTagPos - fOTagPos - len(fOTag))
else
s = fString
end if
doLangCode = s
end function


I also replaced all text based output from database in each ASP file, with this function, meaning:

I replaced this:

... rs("NAME") ...


With this:

... doLangCode(rs("NAME")) ...


I also added a similar thing into chkstring function ("title" and "display"), which did most of the work.

Edited by - bozden on 08 March 2002 18:54:18

Edited by - bozden on 08 March 2002 18:55:51
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 09 March 2002 :  15:26:39  Show Profile  Visit Nathan's Homepage
Ok, yall get to see what I was doing now! -> http://forum.snitz.com/forum/topic.asp?TOPIC_ID=24231



  Nathan Bales - Romans 15:13
----------------------------------

Snitz Exchange | Do's and Dont's
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 09 March 2002 :  18:43:31  Show Profile  Visit Gremlin's Homepage
Looks interesting Nathan, will try it out later today

www.daoc-halo.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07