You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dolcevita

Beginner

  • "dolcevita" is male
  • "dolcevita" started this thread

Posts: 12

Date of registration: Sep 21st 2009

Location: Firenze, Italy

Occupation: Software Developer

Hobbies: Sport, Music (I play the piano)

  • Send private message

1

Monday, September 21st 2009, 2:00pm

Terminate execution

Hi everyone,
i'm beginner here in jabaco, i'm searching how to termiante
the execution of my application with jabaco.
In VB6 i use "End" but this statement doesn't work in Jabaco.
Anyone can help me?
More, is there a manual/documentation of jabaco?
(a sort of msdn)

Regards,
Dolcevita

hari

Beginner

  • "hari" is male

Posts: 8

Date of registration: May 9th 2009

About me: Web developer by trade, and lover of Open Source Movement!

Location: Coimbatore,TamilNadu,India

Occupation: Web Developer

Hobbies: programming,bycycling,chess,drawing

  • Send private message

2

Monday, September 21st 2009, 4:34pm

use Unload me

use "Unload Me" instead of "End" :)

dolcevita

Beginner

  • "dolcevita" is male
  • "dolcevita" started this thread

Posts: 12

Date of registration: Sep 21st 2009

Location: Firenze, Italy

Occupation: Software Developer

Hobbies: Sport, Music (I play the piano)

  • Send private message

3

Monday, September 21st 2009, 4:58pm

Hi, thanks for your response.
unfortunately "Unload Me" doesn't work: if you execute the application
in the IDE, you'll see the form disappear but the app still run.

I tried with "Call End" instead of "End"
It worked.

klctal

Trainee

  • "klctal" is male

Posts: 70

Date of registration: Jul 13th 2009

Location: Shanghai

Hobbies: Developing software

  • Send private message

4

Tuesday, September 22nd 2009, 10:45am

Quoted

unfortunately "Unload Me" doesn't work: if you execute the application
in the IDE, you'll see the form disappear but the app still run.

you'll have to setdefaultclose:

Jabaco Source

1
Me.SetDefaultClose

or in module

Jabaco Source

1
Form1.SetDefaultClose
:D

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

5

Tuesday, September 22nd 2009, 11:12am

Hi,
the "Close()" method of the Form closes the form, but the application keeps running. Strange!

Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
Public Sub Command1_Click()
   Debug.Print "hello"
   
   Me.Close 
   
   Debug.Print "hello again!"
   
   System.exit 0
   
   Debug.Print "after exit"   
End Sub


"System.exit 0" definitely closes down the Java virtual machine.

Greetings!

A1880

Sbleck

Beginner

  • "Sbleck" is male

Posts: 13

Date of registration: May 29th 2010

Location: Santos, Brazil

Occupation: Consultant

Hobbies: Builing some apps for accessing databases and some automation processes

  • Send private message

6

Sunday, May 30th 2010, 3:32am

...
I tried with "Call End" instead of "End"
It worked.

Hello,

Suprisingly, I had the same problem. Tried the "Call End solution" and was surprised again: worked !

Why should I issue one "Call End" to stop Jabaco app running ?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
Public Sub Command1_Click() 
   MsgBox "hello world" 
End Sub 

Public Sub Command2_Click() 
   answer = MsgBox("Do you want to quit ?", vbExclamation + vbYesNo, "Confirm") 
   If answer = vbYes Then 
      Form1.Close() 
      Call End 
   Else 
      MsgBox "Action canceled", vbInformation, "Confirm" 
   End If 
End Sub


Something very strange is noting that in some samples available in this forum showing that in previous releases of Jabaco the End statement was really used to end the application...

Rgds,
Sven

This post has been edited 1 times, last edit by "Sbleck" (May 31st 2010, 2:47am)


Rate this thread
WoltLab Burning Board