473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Downloaded API

Hi all,

I've copied an API from this webpage:

http://www.mvps.org/access/api/api0001.htm - its an api to create an
open/save dialog box. However I'm getting errors when I just wack all
the code into the code builder. Its saying "You can't define a public
user-defined type within an object module"

Where do I need to put the first couple of lines for it to work, or
what do I have to put all the functions etc???

Cheers,

Scott

May 29 '06 #1
4 1280
scrawford wrote:
Where do I need to put the first couple of lines for it to work, or
what do I have to put all the functions etc???


Create a new standard module and give it any name you like. Paste the
code into that.

--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
May 29 '06 #2
thanks a lot. I know it was probably a pretty stupid question.

May 29 '06 #3
On 28 May 2006 20:14:36 -0700, "scrawford"
<sc*******@colonialfirststate.com.au> wrote:

When you declare a Type (=user-defined type), like this code is (and
if you don't specify anything else, it's automatically a Public Type),
it has to be in a Standard Module. And for good reasons: if you were
able to say put it in an Object Module like a Form Module, how would
Access know about that type if the form is not open? Global stuff
needs to be at the global level. With this background info, the error
message makes perfect sense.

-Tom.
Hi all,

I've copied an API from this webpage:

http://www.mvps.org/access/api/api0001.htm - its an api to create an
open/save dialog box. However I'm getting errors when I just wack all
the code into the code builder. Its saying "You can't define a public
user-defined type within an object module"

Where do I need to put the first couple of lines for it to work, or
what do I have to put all the functions etc???

Cheers,

Scott


May 29 '06 #4
scrawford wrote:
thanks a lot. I know it was probably a pretty stupid question.


Not at all.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
May 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joshua | last post by:
Is there a way to set up Apache to invoke a PHP equest when a file (a image for example) is downloaded? Say, then, that http://www.foo.com/downloads/app1.zip is downloaded, Id like to have...
0
by: Chad | last post by:
I have COM component embedded on html page. It has version 1.0.0.1 (by default). I have converted it in cab file. Code of html is something like: <HTML><HEAD></HEAD><BODY><OBJECT...
8
by: jaha | last post by:
Is there any way to manually install to the downloaded assembly cache? I'd like to write winform controls that run in IE but it'd be a better customer experience to use a plugin installer that puts...
1
by: Ruskin | last post by:
I have a wee issue, where I have two different web sites; http://dev/home.htm http://live/home.htm On both sites, there is a custom OCX file being used. However, it may be a different version...
1
by: Oleg Ogurok | last post by:
Hi all, I have a page that's long (>400kb) and therefore takes several seconds to download. I want to put either a progress bar or a simple counter that would show how many percent of the page...
0
by: ProJee | last post by:
Hi, Response.WriteFile (or Response.OutputStream.Write) finishes immediately, not after the file is completely downloaded. It finishes before (!) the user clicks the "Save" or "Open" browser...
7
by: Dave | last post by:
I download the POS .Net class library. The download stated that I should be able to to see samples. I don not know where they can be found on my computer. Also, how could I find the class libraries...
1
by: =?Utf-8?B?UnVzc2VsbA==?= | last post by:
Some sage tech told me, in an online discussion on how to keep my computer clean and working smoothly, that it was ok to delete all of the "downloaded program files" that reside in that internet...
9
by: salil123 | last post by:
How we can keep track of number of bytes downloaded at client side using PHP?. or user has canceled the downloading? so that downloaded bytes can be entered in database can you give me the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.