User defined functions in frontpage

A

Alan

Hello all

I wish to create a number of user defined functions for use in frontpage
between the <% and %> symbols at the beginning of an asp page.

The functions I have written in the frontpage module (Tools>Macro>Visual
Basic Editor) do not seem to be recognised by my asp page that calls the
function.

I get a "Type mismatch" error message - the line number is the line that
calls the function.
I get the same message irrespective of the code in the function.

What am I doing wrong?

Should I be using Add-Ins? All I want is to run the same code from a number
of asp pages. It seemed a function would be a sensible way to do this and
this is the way I would use in say, MS Access.

But I can't get the functions to run in frontpage.

Any help would be appreciated.

Cheers...Alan
 
S

Stefan B Rusynko

ASP uses VBscript as a default language and can not run not VBA functions




| Hello all
|
| I wish to create a number of user defined functions for use in frontpage
| between the <% and %> symbols at the beginning of an asp page.
|
| The functions I have written in the frontpage module (Tools>Macro>Visual
| Basic Editor) do not seem to be recognised by my asp page that calls the
| function.
|
| I get a "Type mismatch" error message - the line number is the line that
| calls the function.
| I get the same message irrespective of the code in the function.
|
| What am I doing wrong?
|
| Should I be using Add-Ins? All I want is to run the same code from a number
| of asp pages. It seemed a function would be a sensible way to do this and
| this is the way I would use in say, MS Access.
|
| But I can't get the functions to run in frontpage.
|
| Any help would be appreciated.
|
| Cheers...Alan
|
|
 
P

p c

Macros work on FP (e.g. automating FP steps) or the Application. They do
not work as web pages. For functions with <% or script tags, you need to
write functions in vbscrip, javascript, php etc, and you must inlude
them in the dybmica page directly or tgrouthg linked page.

...PC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top