Page 1 of 1 1
Topic Options
#22017 - 2002-05-23 02:05 PM Suggestion for UDF name formats
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I have a suggestion for UDf name formats. Basically, we normally have three types of UDFs. Ones that use basic KiXtart commands, ones that rely on WMI (which might not be installed on the taret computer), and ones that use ADSI (which might not be installed on the taret computer).

So, I am proposing to prepend UDFs that use ADSI with ADSI as in ADSIGetFullName() to retrieve the users full name with ADSI. In case of utilizing WMI we would get WMIGetProcessorSpeed(), as an example.

I would make it easier to see whether a particular UDF is suitable for ones environment in case ADSI/WMI is not installed.
_________________________
There are two types of vessels, submarines and targets.

Top
#22018 - 2002-05-23 02:10 PM Re: Suggestion for UDF name formats
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I struggled with naming of my recent posts. They initially were ADSIServiceStartup and ADSIServiceRun. In attempting to key more on the topic of the code "service" I dropped it. Let's have a couple more opinions. I am not opposed to renaming them.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22019 - 2002-05-23 02:31 PM Re: Suggestion for UDF name formats
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jens,

my two cents, i love your idea, especially given that we have many ways to skin a cat now, eg, changing share info with WMI vs ADSI vs Command Line Tool. Another example is creating shortcuts - possible with native kix, cmdline tools and WSH ... you got my vote.

-Shawn

Top
#22020 - 2002-05-23 02:44 PM Re: Suggestion for UDF name formats
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You've got my vote too. I propose that a lowercase 'f' (or udf) also be prepended as in fADSIGetFullName() to denote a UDF. That way if Ruud ever implements an internal function by the same name (sans the 'f') in a future version, it will not break your code.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#22021 - 2002-05-23 03:01 PM Re: Suggestion for UDF name formats
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yeah,

good idea ! Got my vote for that too ..

Les, Congrats on the 2nd millenium post [Big Grin]

Jochen
_________________________



Top
#22022 - 2002-05-23 03:18 PM Re: Suggestion for UDF name formats
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I just tired to "search" the UDF Library for all post by my membership number so that I could rename them all, but nothing was return. Is this a known problem with the search engine?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22023 - 2002-05-23 03:33 PM Re: Suggestion for UDF name formats
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yes, the search broke with the latest server upgrade. I had posted it and let Henri know.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#22024 - 2002-05-23 06:10 PM Re: Suggestion for UDF name formats
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Just tested function name length limits and KiXtart seems to be able to handle a function name consisting of 280 characters [Wink]

[ 23 May 2002, 20:03: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#22025 - 2002-05-23 06:37 PM Re: Suggestion for UDF name formats
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I sure hope it doesn't come to that. GUIDs are bad enough. [Smile]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#22026 - 2002-05-23 06:53 PM Re: Suggestion for UDF name formats
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Howard,

Especially in database design. [Wink]

Les - Congratulations on the MM posts!

- Kent

[ 23 May 2002, 18:54: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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 884 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.062 seconds in which 0.026 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