Page 2 of 2 <12
Topic Options
#166495 - 2006-08-28 03:01 AM Re: Math Help
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I'm losing sight of what is supposed to be true or false. Anyway, back to the original spousal revelation golfed down a bit.

$=-1,-1,-1,0,-1
IIf(Ascan($array,0)=-1,T,F)

Top
#166496 - 2006-08-28 06:47 AM Re: Math Help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
Code:

$=-1,-1,-1,0,-1
IIf(Ascan($array,0)<0,T,F)


Top
#166497 - 2006-08-28 10:45 AM Re: Math Help
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11602
Loc: CA
Code:
$=-1,-1,-1,0,-1
IIf(Ascan($,0)<0,T,F)



Top
#166498 - 2006-08-28 10:48 AM Re: Math Help
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11602
Loc: CA
To fit Golf rules though it should be this

Code:
Dim $
$=-1,-1,-1,0,-1
IIf(Ascan($,0)<0,T,F)


Top
#166499 - 2006-08-28 02:40 PM Re: Math Help
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
well, think it actually should be:
Code:

IIf(Ascan($,0)<0,T,F)



as the input is provided by the caller.
odd thing is, none of us saw the varname typos up there...
weird.

Top
#166500 - 2006-08-28 05:02 PM Re: Math Help
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
You mean where everyone kept assigning $= and then doing an Ascan($Array).

I figured since you had gone way beyone where I was I would just leave it alone...

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 186 anonymous users online.
Newest Members
dimi575, Drecksnacken, Nlill, webtools321, multiman
17734 Registered Users

Generated in 0.032 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

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