Solved

Return parameter

Posted on 2002-03-05
4
130 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
Comment Utility
Command$
0
 
LVL 4

Expert Comment

by:trkcorp
Comment Utility
listening...
0
 

Expert Comment

by:Pawar
Comment Utility
'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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now