Solved

function parameter return with ActiveX exe

Posted on 1998-12-04
1
127 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
[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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
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…

710 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