Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 13th, 2004, 02:24 PM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default get list of custom procedures

I am looking for a way to dynamically "browse" a list of public subs/functions in a user created module within a database. I do not want the procedure's code, just it's name. It would be a bonus to get the parameters and return value, but this is not a necessity.

Previously, I have been referencing a Module from Database.Containers("modules").Documents() then looping through lines of the module using ProcOfLine, ProcBodyLine, Lines, etc. and gathering the procedure names.

This is kind of a pain, but it works. However, I now need the ability to do this with an MDE as well as an MDB. Since the MDE's are compiled, modules are not available for this action.

If I add the MDE as a reference to a VB project or an MDB, and open the object browser, I am able to see the list of procedures. I understand this browser object is based on the tblinf32.dll and have been trying to pull that information using these functions. I am able to programatically get a reference to the MDE that will allow me to view the standards objects with their properties and methods. I have been unable to view modules and what I really need - the functions within those modules.

Any help would be greatly appreciated.

My application is written in VB6 and using automation to communicate with the user's database.

Thanks, Lynn








Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Server Control....Custom Property Editor ZArrinPour ASP.NET 1.0 and 1.1 Basics 1 June 15th, 2010 11:30 AM
Web Service, Custom Control, Custom Return Type robzyc ASP.NET 2.0 Basics 6 June 10th, 2008 08:03 AM
create a custom list to store the category code kiwibey SharePoint Development 0 April 3rd, 2008 02:04 AM
Generic List Serialisation with custom property rodmcleay C# 2005 1 April 23rd, 2007 12:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.