Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

function parameter return with ActiveX exe

Posted on 1998-12-04
1
Medium Priority
?
132 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 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

886 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