Solved

Active X - food for thought?

Posted on 1998-10-27
5
134 Views
Last Modified: 2013-11-25
I am trying convert a VB5 app with many forms to be used in browsers. I converted each form to a ocx and then I assigned one html form to contain one ocx each. The problem is that, I need to pass parameters to/fro these ocxs and I can't use one ocx to call another so I call other htmls containing th ocxs but I cannot pass values to/fro them.. or can I?
What is the solution?
For your info, my app I am converting is a ODBC application.
I am a newbie in Active X so if I am wrong, pls. correct me...      

Thanks!!
0
Comment
Question by:Haho
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1441773
.
0
 

Accepted Solution

by:
methpe earned 60 total points
ID: 1441774
Instead of converting your forms to ocx, convert them to UserDocuments, you can navigate from one page to another by using Hyperlink.Navigate <document location>.  You cannot pass arguments to the new form, but you can use global variables to accomplish this.
0
 
LVL 1

Author Comment

by:Haho
ID: 1441775
How do I add global vars? Just like usual exe global vars ? ( in a global module )
and them create a project that makes a exe from all these user documents in the project?
0
 

Expert Comment

by:methpe
ID: 1441776
Yes, you add global variables by adding a standard module and declaring the variable as public.  You compile the project in the same manner as a standard exe, except when you choose the "Make <project> exe" option, it will also make a .vbd file for each user form.  This is the file you run with Internet Explorer (not the .exe).
PS.  Correction to my previous response, correct syntax is Hyperlink.NavigateTo "<document location>".
0
 
LVL 1

Author Comment

by:Haho
ID: 1441777
thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL store procedure to calculate and return result 6 68
MsgBox 4 71
Create Files based on Cell Values in a Range in Excel 12 43
VBA - If Bookmark = "XXBOOKMARKXX" then 15 50
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 …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

740 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