Solved

Active X - food for thought?

Posted on 1998-10-27
5
128 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now