Page 1 of 1 1
Topic Options
#152958 - 2005-12-06 04:04 PM Function naming???
johnnybhoy Offline
Lurker

Registered: 2004-03-08
Posts: 4
Hi Folks,

I recently ran into a problem with the name of a function I used (not a good name but it was what was asked for) which had a hyphon in it
i.e. FUNCTION My-Function.

This caused a problem in the originating script. Can anyone shed any light on why that would happen> I'm not going to use this nameing convention again for obvious reasons :-)

Cheers

J

Top
#152959 - 2005-12-06 04:34 PM Re: Function naming???
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I thought it was pretty obvious. the hyphen is in fact a numeric operator.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#152960 - 2005-12-06 09:49 PM Re: Function naming???
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
While is may appear obvious, I ran into a similar issue with a file name..
Code:

If not exist($desktop+'\BrokerDB - Citrix.lnk')
;etc.
ENDIF



Of course to get around this, I had to remove the hyphen.

Thanks,

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

Top
#152961 - 2005-12-07 09:35 AM Re: Function naming???
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
what the issue was kent?
as that does not look like bad syntax at all.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1707 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.032 seconds in which 0.018 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