Solved

Return parameter

Posted on 2002-03-05
4
134 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
[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
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 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