Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Application return value

Posted on 1999-07-09
7
Medium Priority
?
158 Views
Last Modified: 2010-05-02
How do i return value from vb to the running application?
(i mean when the vb app finishes)
In c it would look like:
int main()
{
   ...
   return 1
}
0
Comment
Question by:ishaygreen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:ishaygreen
ID: 1523037
Edited text of question.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 1523038
Write your application as an ActiveX exe
0
 

Author Comment

by:ishaygreen
ID: 1523039
If u like u can write your own programs as ActiveX exe
i need a simple appication to return value
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:caraf_g
ID: 1523040
Exactly. Write it as an ActiveX .exe
The world has moved on since the dark ages.
0
 
LVL 15

Expert Comment

by:ameba
ID: 1523041
Use ExitProcess API.
put this in Form_Click
   ExitProcess 5
Note: Be sure to do all you cleanup before calling it. If you try this in IDE, your VB will close.

To grab value returned from other apps in your VB program, see
http://www.experts-exchange.com/Q.10120465
0
 

Author Comment

by:ishaygreen
ID: 1523042
Sorry ameba ur answer is Excelent pls, re send me a msg so
i can grad u.
0
 
LVL 15

Accepted Solution

by:
ameba earned 200 total points
ID: 1523043
OK
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question