expotesting
(Lurker)
2006-08-17 10:07 AM
form dont want to close..

hi,

i just started again with kixtart and got my first problem.

the source (button exit):

$bt_exit = $Form.Controls.Button()
$bt_exit.FontSize = 8,25
$bt_exit.Height = 23
$bt_exit.Left = 270
$bt_exit.Text = "Exit"
$bt_exit.Top = 210
$bt_exit.Width = 75
$bt_exit.onClick = "endsoft()"

the source (function to call) :

Function endsoft()
Exit 0
EndFunction

if i click on the button, nottings happend.

some reason?

thanks in advance
expodium


expotesting
(Lurker)
2006-08-17 10:21 AM
Re: form dont want to close..

oeps...foutje..het moet dus quit() zijn

expodium


NTDOCAdministrator
(KiX Master)
2006-08-17 11:21 AM
Re: form dont want to close..

Hello and wecome back if this is your second time back around.

Two things.

1. Please use the UBB CODE TAGS when posting code to preserve the formatting and make it easier for others to read your code.

2. Not to complain, but this is an English board and though there are some that may be able to read your second post, most can not. Since your first post was in English I assume you have at least the basics of English or better. Please post in English so that everyone can read or post suggestions.

Thanks


Mart
(KiX Supporter)
2006-08-17 01:38 PM
Re: form dont want to close..

Quote:

oeps...foutje..het moet dus quit() zijn

expodium




LOL He's dutch.

Translation:
Oops...my bad..it should be quit()


Les
(KiX Master)
2006-08-17 02:36 PM
Re: form dont want to close..

No, it should be QUIT 1. QUIT is not a function.