Solved

function parameter return with ActiveX exe

Posted on 1998-12-04
1
122 Views
Last Modified: 2012-05-04
How can a method used in a VB client connecting to an VB 5.0 Automation server get back a changed parameter?
I defined e.g. in the  Server where Version is passed ByRef:
Public Function GetVersion( Version As String) As Long
  .. changes Version  ...
call in the Client:
MyAppl.GetVersion ( Version )

but Version is not changed !
0
Comment
Question by:philipdesmet
1 Comment
 

Accepted Solution

by:
GeddyWaring earned 200 total points
ID: 1448252
Hi Philip

The problem is in your calling convention.

The MyAppl.GetVersion(Version) is passing the parameter By value even though your function declares it By Reference.
Change the call to either "MyAppl.GetVersion Version" or "Call MyAppl.GetVersion(Version)"

Ged

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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…
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 …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

809 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