Page 1 of 1 1
Topic Options
#71327 - 2002-10-30 10:05 PM String Value
Incognito Offline
Getting the hang of it

Registered: 2001-07-09
Posts: 66
Hey guys,
What would be the easiest way for me to create a system variable to gather the following information:

I need to create a variable that would be the first initial and last name of the user - for example: Full Name= John Smith - I would need a system variable created as jsmith.

Is there an easy way to do this using kix? If so, how would I do it using the fullname field from user manager? Thanks!

Top
#71328 - 2002-10-30 10:09 PM Re: String Value
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
This might be the answer to the first part of your question:

Topic: Initials of a User - String Manipulation

Top
#71329 - 2002-10-30 10:11 PM Re: String Value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, as your example:
@FullName Full name of current user
Substr( ) Returns part of a string.

coming to:
$var=substr(@fullname,1,1)+substr(@fullname,instr(@fullname," ")+1)

set "$var=whatever"
_________________________
!

download KiXnet

Top
#71330 - 2002-10-30 10:12 PM Re: String Value
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doesn't @userid do this too?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#71331 - 2002-10-30 10:14 PM Re: String Value
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Kent,

the userid doesn't have to be the same as first initial + last name [Big Grin]
In our org. it's the other way around...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#71332 - 2002-10-30 10:15 PM Re: String Value
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeah and we have 4 last and 2 first...
_________________________
!

download KiXnet

Top
#71333 - 2002-10-30 10:20 PM Re: String Value
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Talking about standards:

max 7 last + 1 first.
if exist max 6 last + 1 first + number --> ruttenp1 [Wink]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#71334 - 2002-11-05 04:55 AM Re: String Value
jtrainer Offline
Fresh Scripter

Registered: 2002-03-06
Posts: 36
The last place I worked at, used this really cool, user friendly completely managed userID system.

First, your name, was immediately forgotten (if recorded). The based on Department, Title/Position, a user ID was derrived, of course, follwed by a number or two. So, my official ID there was, L26, however, being the sly ones IT staffers are, we just used our initials.

Guess what, they merged with a new company, I left and who cares.

out
- jtrainer -
_________________________
Bumped my mouse again, time to reboot Windoze....
Top
Page 1 of 1 1


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

Who's Online
0 registered and 871 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.055 seconds in which 0.022 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