Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Croping Variables
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Croping Variables

 Post Reply Post Reply
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Croping Variables
    Posted: 15 June 2004 at 12:57pm

Hello, i read a variable from some source,

like suppse, SongList(3)=About Chiniot.About

I wanted to Write the part before the "." and after the "." seperatly,

i tried

Left(SongList(i), InStrRev(SongList(i), ".") - 1)

Works flowlessly... but when i tried writing the right part

Right(SongList(i), InStrRev(SongList(i), ".") - 1)

It gets crazy

like here is what i got when i try priting from right...

Originally posted by MyCrazyResult MyCrazyResult wrote:

Variable Value: Home.Home Output:.Home
Variable Value: About Chiniot.About Output: Chiniot.About
Variable Value: About Moeez.Moeez Output: Moeez.Moeez
Variable Value: Photos From Chiniot.Photos Output: From Chiniot.Photos
Variable Value: Historic Background.History Output:c Background.History
Variable Value: Site Creadits.Creadits Output:adits.Creadits

what's happening

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2004 at 1:18pm

Try

Split(SongList(i), ".")(0)

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 15 June 2004 at 11:43pm
Yup! That works, thanku very much mart
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2004 at 9:41pm
for future refrence... a quick search of google for working with strings in asp will bring up over a million pages with a bunch of functions and how to use them on it
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2004 at 11:51pm

Originally posted by pmormr pmormr wrote:

for future refrence... a quick search of google for working with strings in asp will bring up over a million pages with a bunch of functions and how to use them on it

Actually pmormr, i always goto google before comming here, but the problem is, that i dont understand what to write in the seachbox, because i have no clue.. like suppose i want to make two parts of a varuable blablabla.blablabla, what shud i write ? now i know i can use Split, but at that time ? i had no clue, so i had to come to the forum to ask the question, and i feel others may also find it usefull ? if some of them dont know asp very well

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2004 at 12:06am

asp's too extensive of a language to know it all... there's got to be like 250 different functions for just strings

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.