473,471 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB - WEBB: As Integer not recognized

2 New Member
Hi,

I found a code for a password generator online, said it was VB. I input that code into an email generator code, that was created by someone else. I was told that the email generator code was in VB, so the two should work together. But the As Integer statements keep coming up as errors.

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/ar/createMessage.asp, line 84

Function GeneratePassword(ByVal length As Integer, ByVal
--------------------------------------------------------------^
numberOfNonAlphanumericCharacters As Integer) As String

I keep getting that, almost like it doesn't recognize the statement.

Here is the first half of code, all declarations. Anyone got any ideas?

<script language="VBScript" runat="server">

On Error Resume Next

Response.Expires = 0
Response.Buffer = True
Response.Clear

Dim fName
Dim lName
Dim rfName
Dim rlName
Dim bahID
Dim PD
Dim PDOF
Dim PDOFD
Dim pdPW
Dim pdofPW
Dim ompPW
Dim strMessage
Dim OMPC
Dim DOMP
Dim dompPW
Dim ompcPW
Dim Proj

fName = request.form("First")
lName = request.form("Last")
rfName = request.form("RFirst")
rlName = request.form("RLast")
bahID = request.form("ID")
PD = request.form("PD")
PDOF = request.form("PDOF")
PDOFD = request.form("PDOFD")
OMP = request.form("OMP")
OMPC = request.form("OMPC")
DOMP = request.form ("DOMP")
DD = request.form("DD")
DDOF = request.form("DDOF")
LL = request.form("LL")
VM = request.form("VM")
TR = request.form("TR")
AR = request.form("AR")
Proj = request.form("Project")
TTR = request.form("TTR")
AI = request.form("AI")
IL = request.form("IL")
PIO = request.form("PIO")

Function GeneratePassword(ByVal length As Integer, ByVal numberOfNonAlphanumericCharacters As Integer) As String
'Make sure length and numberOfNonAlphanumericCharacters are valid....
If ((length < 1) OrElse (length > 128)) Then
Throw New ArgumentException("Membership_password_length_inco rrect")
End If
Sep 12 '07 #1
2 1347
Plater
7,872 Recognized Expert Expert
use "int" instead of integer?
Integer isn't used in C#, and so maybe it isn't used in vb.NET either
Sep 12 '07 #2
fuzzylogik
2 New Member
Thank you for the input. Problem solved.
Sep 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: rss | last post by:
SUMMARY: ========== I am unable to pass along a simple Cookie obtained from a HttpWebRequest call (Machine A's ASP.NET app) so that another Web Server (Machine B) recongnizes the cookie. I...
4
by: Ê÷Éϲä»Ò | last post by:
'rar' is not recognized as an internal or external command, operable program or batch file. import os import time source = target_dir = r'e:\temp\bak' target =...
11
by: Frederick Gotham | last post by:
I'd like to discuss the use of signed integers types where unsigned integers types would suffice. A common example would be: #include <cassert> #include <cstddef> int...
5
by: Kevin Burton | last post by:
I am trying an XSLT transformation using the XslCompiledTransform class. I get an exception when I call the Transform method. It seems to point to these two lines: <xsl:namespace...
1
by: database | last post by:
I AM FACING A PROBLEM WHEN I ACCESS ONE OF THE PAGES. IT USED TO WORK BEFORE BUT AFTER RESTARTING THE APPLICATION SEVER IT GIVES THE FOLLOWING ERROR. - Server Error ...
2
by: ruthiefy | last post by:
Hi, I need a few sql queries results so I created a new class with has a few functions that load the data. After executing ExecuteReader, I need to load the data to the dropdownlist control....
2
by: =?Utf-8?B?anVuaW9yLWdlZWtldHRl?= | last post by:
I have seen similar questions posted here but no result for my situation so here goes. I have a fairly new Maxtor OneTouch III Turbo Terabyte external drive (raid) and a new Dell 690 Precision...
3
by: c2 | last post by:
hi, i face a problem when click the icon , my login will prompt this message String was not recognized as a valid Boolean See the end of this message for details on invoking just-in-time (JIT)...
0
by: fantasticamir | last post by:
I have a simple program using a couple of classes and it compiled successfully but while it is linking I have the following problem: g++ -Wall -lcu -lglu ACL2MDD.o Link.o Rule.o reachability.o ...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.