Page 1 of 1 1
Topic Options
#116931 - 2004-03-26 10:23 PM string manipulation
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
I'd like to capture just the numbers from @DATE. In other words, rather than 2004/03/26, return 20040326. Can I feed the string returned by @DATE into a function that strips out the "/" ?

Thanks

Top
#116932 - 2004-03-26 10:25 PM Re: string manipulation
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Quote:

I'd like to capture just the numbers from @DATE. In other words, rather than 2004/03/26, return 20040326. Can I feed the string returned by @DATE into a function that strips out the "/" ?

Thanks




easy...

? join(split(@date,"/"),"")

Top
#116933 - 2004-03-26 10:35 PM Re: string manipulation
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
Cool...where do I go to learn about string functions like split and join...they're not specific to KiXtart, right?
Top
#116934 - 2004-03-26 10:56 PM Re: string manipulation
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Quote:

Cool...where do I go to learn about string functions like split and join...they're not specific to KiXtart, right?




i know that VBS has the same type of functions too and are kind of a universial command... but these are in the manual.

Top
#116935 - 2004-03-26 11:00 PM Re: string manipulation
tr6boy Offline
Starting to like KiXtart

Registered: 2001-10-24
Posts: 131
OK, I'll look again...I was looking at the command reference on the home page. Thanks Bryce!
Top
#116936 - 2004-03-26 11:06 PM Re: string manipulation
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
or use this..

http://209.50.244.178/downloads/kix/kixtart422.chm


Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.057 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org