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

x
?
Solved

Active X - food for thought?

Posted on 1998-10-27
5
Medium Priority
?
139 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 180 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

971 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