#180485 - 2007-09-12 11:00 PM
Re: Variable definitions in ScriptLogic Desktop authority
[Re: Shawn]
|
Witto
MM club member
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
I would use @WKSTABREAK ON
$PCdept = Left(@WKSTA,2)
"- " + $PCdept ?
Get $SO
|
Top
|
|
|
|
#180497 - 2007-09-13 01:25 AM
Re: Variable definitions in ScriptLogic Desktop authority
[Re: Witto]
|
StarwarsKid
Seasoned Scripter
Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
|
Jochen: Yeah, I know.
Shawn: I was prepared for that, but I'm glad there are some that try anyway. I haven't posted to the SL forum, it's slow and unexperience, you KORG guys are "IT" when it comes to Kixtart, therefore......
Sorry about the use of "register". What I mean is, SL doesn't seem to recognize the use of "left". There are no syntax errors, it just doesn't select the first two left characters.
The code I mentioned above returns any two characters in the workstation name that equal $PCdept.
If I have: It will return all computers that have "en" in the name, not just those with "en" at the beginning. This is a problem when I have Engineering department computers that have EN430289 and another computer outside the Engineering dept that is named "Bagend".
SL recommended using message boxes to see what my variables generate. I know, you're laughing. *sigh*. At least when I go to the SL function library, I see almost every PRO's name from KORG. That's pretty cool. http://www.scriptlogic.com/kixtart/functionlibrary_functionlist.aspx
WITTO: I'm going to try your syntax and see what happens. Thanks a lot!!
_________________________
let the wise listen and add to their learning, and let the discerning get guidance- Proverbs 1:5
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 259 anonymous users online.
|
|
|