Solved

Return parameter

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Window placement 17 74
Search combo error "Data Type Mismatch in Criteria Expression" 2 51
Using an encrypted  value to decrypt and display contents in vb6 9 49
MsgBox 4 45
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 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…
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…

919 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

16 Experts available now in Live!

Get 1:1 Help Now