Page 1 of 1 1
Topic Options
#77842 - 2001-05-16 05:46 PM Array and Function
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
when i'm using a script like that i don't get the expected result :
code:

$temp=test(5,"Tst")
? ""+ ubound($temp)
? ""+ $temp

Function test($va,$vb)
Redim $test[$va]
For $i=1 to $va-1
$test[$i]=$vb
next
? ""+ ubound($test)
endfunction


I get this (even the $temp is dim as an array) :

code:

4
0


The 4 is ok, but i was expected another 4.
I'm wrong or kixtart can't handle a "array = function result : array" ?

[This message has been edited by Popovk (edited 16 May 2001).]

_________________________
? getobject(Kixtart.org.Signature)

Top
#77843 - 2001-05-16 05:53 PM Re: Array and Function
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Spooky - I just posted a reply on a very similar subject here: http://kixtart.org/board/Forum4/HTML/000057.html

------------------
Richard Howarth

Top
#77844 - 2001-05-16 06:49 PM Re: Array and Function
Anonymous
Unregistered


The current implementation assumes an integer as the default return type of UDF's.

This will be enhanced in the final version.

Thanks for the report.

Kind regards,

Ruud

Top
Page 1 of 1 1


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

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

Generated in 0.05 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.