Solved

Active X - food for thought?

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF issue with Trigger 2 106
Please explain "Promise Pattern" and how it's used 2 56
Automatic Email Reminder 4 37
VBA - If Bookmark = "XXBOOKMARKXX" then 15 28
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…
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.
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…
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…

770 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