Page 1 of 1 1
Topic Options
#136040 - 2005-03-22 12:46 AM upgrade use command to function
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lets face it.
with @result it got little more functionality but when USE becomes function, it would be in it's blood to return proper return values.

USE LIST as an example is way useless to normal everyday scripter.
when with use() it would be amazing new treasurefund:
$uselist=use()

and once I'm at it.
ruud, what is the auto redirect mentioned in 4.22 releasenotes?
there seems to be no discussion anywhere about it.
_________________________
!

download KiXnet

Top
#136041 - 2005-03-22 12:59 AM Re: upgrade use command to function
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Then why not update SHELL/RUN along the same lines so that I can do a
Code:

$result=SHELL('%COMSPEC% /C DIR *.*')


instead of
Code:

SHELL '%COMSPEC% /C DIR *.* >%TEMP%\dirlist.txt'


with a subsequent read of the text file or reveting to the likes of the WSHShell() UDF. The output goes into a single variable with CRLF preserved.


Edited by sealeopard (2005-03-23 01:01 AM)
_________________________
There are two types of vessels, submarines and targets.

Top
#136042 - 2005-03-22 09:47 AM Re: upgrade use command to function
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shortly, ruud answered via mail:
Quote:


I understand how implementing functions for some of the standard
commands would be useful. I'll see if/how this can be addressed.




_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.053 seconds in which 0.025 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