Page 2 of 2 <12
Topic Options
#130265 - 2004-11-27 03:40 AM Re: Kixform InputBox Cancel Button
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
old man huh? pfft!

I think DOC is older than you and I know I am way older than DOC!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#130266 - 2004-11-27 04:21 AM Re: Kixform InputBox Cancel Button
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Shawn, looking through your example script I noticed that you used the inputbox like this:

Code:
$InputBox = $System.InputBox()
$RemotePC = $InputBox.Show("Enter Remote PC Name","Remote",$lastremotepc)



In one of my scripts I used the following:
Code:
$remotepc=$form.inputbox("Enter Remote PC Name","Remote",$lastremotepc)  




It been a long time since I wrote this particular script... has the syntax changed in KFs or is KFs forgiving and this was not correct to start with?


Top
#130267 - 2004-11-27 05:53 AM Re: Kixform InputBox Cancel Button
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
They're both correct. The first version (your version) was the first InputBox that was done - and it emulates the VB one. The second one is a more "object-oriented" version of InputBox - afaik no other language or library has an InputBox quite like this one ... it allows you to specify and capture information not other-wise availble, like the dialogresult. Was meaning to have some other properties as well (like title and default), might do them this weekend.


Top
Page 2 of 2 <12


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

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.066 seconds in which 0.035 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