Solved

Return parameter

Posted on 2002-03-05
4
132 Views
Last Modified: 2010-05-02
Sorry for dummy question but,
how to return a parameter from a vb .exe application??
(I remember in ANSI C, I wrote return xx in main function).
Regards
0
Comment
Question by:cbonjovi
4 Comments
 
LVL 3

Accepted Solution

by:
Gunsen earned 25 total points
ID: 6841783
Command$
0
 
LVL 4

Expert Comment

by:trkcorp
ID: 6841812
listening...
0
 

Expert Comment

by:Pawar
ID: 6841819
'function always return value whatever we assign with function Name

Function FunName(strMyFirstName as String)
  If (strMyFirstName = "PRASHANT" ) Then
     FunName ="Pawar"
  Else
    FunName = "Deshmukh"
End If

private sub onFormLoad()
msgbox FunName("PRASHANT")
msgbox FunName("VISHAL")
End sub

'try this
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 6841908
I'm guessing that your question is the opposite of the above answer, so you should reject it.  This will also allow other experts to more easily find this question.

If you want your app to RETURN a value (not RECEIVE a value) I think you can set it up as an ActiveX form, but I've never tried it.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

776 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