473,704 Members | 2,621 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

need bullet proof input validator

SLH
hi people. im trying to validate input received via a text area on an ASP
page before writing it to a database. i cant use client side javascript due
to policy, so it all has to happen on the server. here is what i was trying,
but pieces of it continue to break for one reason or another. the thinking
behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any words,
fail. (i try this by breaking up the input at space characters into an
array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10
characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data
has a newline, it fails (not sure why. is a newline looked at as 3 spaces?)
since there are too many moving parts here i was hoping someone else might
have a better approach to validating the input.
thanks for any help.
Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function
Oct 2 '06 #1
43 2603

SLH wrote:
hi people. im trying to validate input received via a text area on an ASP
page before writing it to a database. i cant use client side javascript due
to policy, so it all has to happen on the server. here is what i was trying,
but pieces of it continue to break for one reason or another. the thinking
behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any words,
fail. (i try this by breaking up the input at space characters into an
array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10
characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data
has a newline, it fails (not sure why. is a newline looked at as 3 spaces?)
since there are too many moving parts here i was hoping someone else might
have a better approach to validating the input.
thanks for any help.
Use regular expressions.

Oct 2 '06 #2
SLH

"Larry Bud" <la**********@y ahoo.comwrote in message
news:11******** **************@ m7g2000cwm.goog legroups.com...
>
SLH wrote:
>hi people. im trying to validate input received via a text area on an ASP
page before writing it to a database. i cant use client side javascript
due
to policy, so it all has to happen on the server. here is what i was
trying,
but pieces of it continue to break for one reason or another. the
thinking
behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any
words,
fail. (i try this by breaking up the input at space characters into an
array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10
characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data
has a newline, it fails (not sure why. is a newline looked at as 3
spaces?)
since there are too many moving parts here i was hoping someone else
might
have a better approach to validating the input.
thanks for any help.

Use regular expressions.
thanks, sounds great. i was kinda hoping for help though. maybe in the form
of a good example? regular expressions arent exactly my strong point.
Oct 2 '06 #3
SLH wrote on 02 Oct 2006 in microsoft.publi c.inetserver.as p.general:
>Use regular expressions.

thanks, sounds great. i was kinda hoping for help though. maybe in the
form of a good example? regular expressions arent exactly my strong
point.
We all had to learn.
Ther best help is if you start of, and we go along.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 2 '06 #4
try this
Function IsGoodInput(str )

IsGoodInput = True
Dim MyArray, i

'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0

MyArray = Split(str, " ")

'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if

'if its 10 characters or greater, but it doesnt appear to contain any words,
'fail. (i try this by breaking up the input at space characters into an
'array. valid input should have several spaces, indicating several words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------

If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
"SLH" <SL*@SLH.SLHwro te in message news:uf******** ******@TK2MSFTN GP05.phx.gbl...
hi people. im trying to validate input received via a text area on an ASP page before writing it to a database. i cant use client
side javascript due to policy, so it all has to happen on the server. here is what i was trying, but pieces of it continue to
break for one reason or another. the thinking behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any words, fail. (i try this by breaking up the input at space
characters into an array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10 characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data has a newline, it fails (not sure why. is a newline
looked at as 3 spaces?)
since there are too many moving parts here i was hoping someone else might have a better approach to validating the input.
thanks for any help.
Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function

Oct 2 '06 #5
SLH
thank you! here is what i have now:

Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop
If Len(str) < 10 Or Len(str) 1000 Then
IsGoodInput = False
Exit Function
End if
MyArray = Split(str, " ")
If UBound(MyArray) = 0 Then
IsGoodInput = False
Exit Function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit Function
End If
Next
End If
End Function

im tryng to see if/where this will fail and so far all i can see is that if
i enter:

line1
line2

it fails. i guess because there are no spaces. only a newline after the
first word.
can you see anything clever to fix it so that this input would be valid?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12******** *****@corp.supe rnews.com...
try this
Function IsGoodInput(str )

IsGoodInput = True
Dim MyArray, i

'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0

MyArray = Split(str, " ")

'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if

'if its 10 characters or greater, but it doesnt appear to contain any
words,
'fail. (i try this by breaking up the input at space characters into an
'array. valid input should have several spaces, indicating several words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------

If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
"SLH" <SL*@SLH.SLHwro te in message
news:uf******** ******@TK2MSFTN GP05.phx.gbl...
>hi people. im trying to validate input received via a text area on an ASP
page before writing it to a database. i cant use client side javascript
due to policy, so it all has to happen on the server. here is what i was
trying, but pieces of it continue to break for one reason or another. the
thinking behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any
words, fail. (i try this by breaking up the input at space characters
into an array. valid input should have several spaces, indicating several
words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10
characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data
has a newline, it fails (not sure why. is a newline looked at as 3
spaces?)
since there are too many moving parts here i was hoping someone else
might have a better approach to validating the input.
thanks for any help.
Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function


Oct 2 '06 #6
replace(str, vbnewline," " )
"SLH" <SL*@SLH.SLHwro te in message news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
thank you! here is what i have now:

Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop
If Len(str) < 10 Or Len(str) 1000 Then
IsGoodInput = False
Exit Function
End if
MyArray = Split(str, " ")
If UBound(MyArray) = 0 Then
IsGoodInput = False
Exit Function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit Function
End If
Next
End If
End Function

im tryng to see if/where this will fail and so far all i can see is that if i enter:

line1
line2

it fails. i guess because there are no spaces. only a newline after the first word.
can you see anything clever to fix it so that this input would be valid?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message news:12******** *****@corp.supe rnews.com...
>try this
Function IsGoodInput(str )

IsGoodInput = True
Dim MyArray, i

'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0

MyArray = Split(str, " ")

'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if

'if its 10 characters or greater, but it doesnt appear to contain any words,
'fail. (i try this by breaking up the input at space characters into an
'array. valid input should have several spaces, indicating several words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------

If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
"SLH" <SL*@SLH.SLHwro te in message news:uf******** ******@TK2MSFTN GP05.phx.gbl...
>>hi people. im trying to validate input received via a text area on an ASP page before writing it to a database. i cant use
client side javascript due to policy, so it all has to happen on the server. here is what i was trying, but pieces of it
continue to break for one reason or another. the thinking behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any words, fail. (i try this by breaking up the input at space
characters into an array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10 characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the data has a newline, it fails (not sure why. is a newline
looked at as 3 spaces?)
since there are too many moving parts here i was hoping someone else might have a better approach to validating the input.
thanks for any help.
Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function



Oct 2 '06 #7
SLH
thank you.
that wouldnt work because when i later write the data from the DB to the
html page i need to preserver formatting, including newlines.
its ok though. i realize that NO inpute will be valid without a space. so i
should be ok.

thanks for your help

"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12******** *****@corp.supe rnews.com...
replace(str, vbnewline," " )
"SLH" <SL*@SLH.SLHwro te in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>thank you! here is what i have now:

Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop
If Len(str) < 10 Or Len(str) 1000 Then
IsGoodInput = False
Exit Function
End if
MyArray = Split(str, " ")
If UBound(MyArray) = 0 Then
IsGoodInput = False
Exit Function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit Function
End If
Next
End If
End Function

im tryng to see if/where this will fail and so far all i can see is that
if i enter:

line1
line2

it fails. i guess because there are no spaces. only a newline after the
first word.
can you see anything clever to fix it so that this input would be valid?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12******* ******@corp.sup ernews.com...
>>try this
Function IsGoodInput(str )

IsGoodInput = True
Dim MyArray, i

'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0

MyArray = Split(str, " ")

'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if

'if its 10 characters or greater, but it doesnt appear to contain any
words,
'fail. (i try this by breaking up the input at space characters into an
'array. valid input should have several spaces, indicating several
words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------

If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
"SLH" <SL*@SLH.SLHwro te in message
news:uf****** ********@TK2MSF TNGP05.phx.gbl. ..
hi people. im trying to validate input received via a text area on an
ASP page before writing it to a database. i cant use client side
javascript due to policy, so it all has to happen on the server. here
is what i was trying, but pieces of it continue to break for one reason
or another. the thinking behind this function was like this:

if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any
words, fail. (i try this by breaking up the input at space characters
into an array. valid input should have several spaces, indicating
several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than
10 characters. (by looping through the words in the array)

different parts of this fail at different times. for instance if the
data has a newline, it fails (not sure why. is a newline looked at as 3
spaces?)
since there are too many moving parts here i was hoping someone else
might have a better approach to validating the input.
thanks for any help.
Function IsGoodInput(str )
IsGoodInpu t = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function



Oct 2 '06 #8
assign str to tempStr then validate - if ok, then save str
"SLH" <SL*@SLH.SLHwro te in message news:uJ******** *****@TK2MSFTNG P02.phx.gbl...
thank you.
that wouldnt work because when i later write the data from the DB to the html page i need to preserver formatting, including
newlines.
its ok though. i realize that NO inpute will be valid without a space. so i should be ok.

thanks for your help

"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message news:12******** *****@corp.supe rnews.com...
>replace(str, vbnewline," " )
"SLH" <SL*@SLH.SLHwro te in message news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
>>thank you! here is what i have now:

Function IsGoodInput(str )
IsGoodInput = True
Dim MyArray, i
Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop
If Len(str) < 10 Or Len(str) 1000 Then
IsGoodInput = False
Exit Function
End if
MyArray = Split(str, " ")
If UBound(MyArray) = 0 Then
IsGoodInput = False
Exit Function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit Function
End If
Next
End If
End Function

im tryng to see if/where this will fail and so far all i can see is that if i enter:

line1
line2

it fails. i guess because there are no spaces. only a newline after the first word.
can you see anything clever to fix it so that this input would be valid?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message news:12******** *****@corp.supe rnews.com...
try this
Function IsGoodInput(str )

IsGoodInput = True
Dim MyArray, i

'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0

MyArray = Split(str, " ")

'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if

'if its 10 characters or greater, but it doesnt appear to contain any words,
'fail. (i try this by breaking up the input at space characters into an
'array. valid input should have several spaces, indicating several words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------

If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
"SLH" <SL*@SLH.SLHwro te in message news:uf******** ******@TK2MSFTN GP05.phx.gbl...
hi people. im trying to validate input received via a text area on an ASP page before writing it to a database. i cant use
client side javascript due to policy, so it all has to happen on the server. here is what i was trying, but pieces of it
continue to break for one reason or another. the thinking behind this function was like this:
>
if the input is less than 10 characters long, fail.
if its 10 characters or greater, but it doesnt appear to contain any words, fail. (i try this by breaking up the input at
space characters into an array. valid input should have several spaces, indicating several words)
if there are 3 consecutive spaces, fail. (this cant be valid).
then if all that passes, i need to make sure no words are longer than 10 characters. (by looping through the words in the
array)
>
different parts of this fail at different times. for instance if the data has a newline, it fails (not sure why. is a newline
looked at as 3 spaces?)
since there are too many moving parts here i was hoping someone else might have a better approach to validating the input.
thanks for any help.
>
>
Function IsGoodInput(str )
IsGoodInp ut = True
Dim MyArray, i
MyArray = Split(str, " ")
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0 Then
IsGoodInput = False
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit For
End If
Next
End If
End Function
>




Oct 2 '06 #9
SLH
hey i have to duplicate this function in javascript. the only part im
struggling with is the following:

Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop

the javascript replace function sucks. it only replaces the first occurence
of what youre looking for.... any ideas?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12******** *****@corp.supe rnews.com...
assign str to tempStr then validate - if ok, then save str
"SLH" <SL*@SLH.SLHwro te in message
news:uJ******** *****@TK2MSFTNG P02.phx.gbl...
>thank you.
that wouldnt work because when i later write the data from the DB to the
html page i need to preserver formatting, including newlines.
its ok though. i realize that NO inpute will be valid without a space. so
i should be ok.

thanks for your help

"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12******* ******@corp.sup ernews.com...
>>replace(str , vbnewline," " )
"SLH" <SL*@SLH.SLHwro te in message
news:%2****** **********@TK2M SFTNGP05.phx.gb l...
thank you! here is what i have now:

Function IsGoodInput(str )
IsGoodInpu t = True
Dim MyArray, i
Do While InStr(str," ") 0
str = Replace(Trim(st r)," "," ")
Loop
If Len(str) < 10 Or Len(str) 1000 Then
IsGoodInput = False
Exit Function
End if
MyArray = Split(str, " ")
If UBound(MyArray) = 0 Then
IsGoodInput = False
Exit Function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
Exit Function
End If
Next
End If
End Function

im tryng to see if/where this will fail and so far all i can see is
that if i enter:

line1
line2

it fails. i guess because there are no spaces. only a newline after the
first word.
can you see anything clever to fix it so that this input would be
valid?


"Jon Paal" <Jon nospam Paal @ everywhere dot comwrote in message
news:12***** ********@corp.s upernews.com...
try this
>
>
Function IsGoodInput(str )
>
IsGoodInput = True
Dim MyArray, i
>
'Remove double spaces
'----------------------------
Do
str = Replace(Trim(st r)," "," ")
loop while Instr(str," ") 0
>
MyArray = Split(str, " ")
>
'check min length
' if the input is less than 10 characters long, fail.
'---------------------------------------------------------------
If Len(str) < 10 Then
IsGoodInput = False
exit function
End if
>
'if its 10 characters or greater, but it doesnt appear to contain any
words,
'fail. (i try this by breaking up the input at space characters into
an
'array. valid input should have several spaces, indicating several
words)
'
'make sure no words are longer than 10 characters. (?)
'(by looping through the words in the array)
'--------------------------------------------------------
>
If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0
Then
IsGoodInput = False
exit function
Else
For i = 0 To UBound(MyArray)
If Len(MyArray(i)) 10 Then
IsGoodInput = False
exit function
End If
Next
End If
End Function
>
>
"SLH" <SL*@SLH.SLHwro te in message
news:uf**** **********@TK2M SFTNGP05.phx.gb l...
>hi people. im trying to validate input received via a text area on an
>ASP page before writing it to a database. i cant use client side
>javascri pt due to policy, so it all has to happen on the server. here
>is what i was trying, but pieces of it continue to break for one
>reason or another. the thinking behind this function was like this:
>>
>if the input is less than 10 characters long, fail.
>if its 10 characters or greater, but it doesnt appear to contain any
>words, fail. (i try this by breaking up the input at space characters
>into an array. valid input should have several spaces, indicating
>several words)
>if there are 3 consecutive spaces, fail. (this cant be valid).
>then if all that passes, i need to make sure no words are longer than
>10 characters. (by looping through the words in the array)
>>
>differen t parts of this fail at different times. for instance if the
>data has a newline, it fails (not sure why. is a newline looked at as
>3 spaces?)
>since there are too many moving parts here i was hoping someone else
>might have a better approach to validating the input.
>thanks for any help.
>>
>>
>Function IsGoodInput(str )
>IsGoodInpu t = True
>Dim MyArray, i
>MyArray = Split(str, " ")
>If Len(str) < 10 Or InStr(str, " ") <0 Or UBound(MyArray) = 0
>Then
> IsGoodInput = False
>Else
> For i = 0 To UBound(MyArray)
> If Len(MyArray(i)) 10 Then
> IsGoodInput = False
> Exit For
> End If
> Next
>End If
>End Function
>>
>
>




Oct 2 '06 #10

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

Similar topics

7
6841
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through Google search. So here is my problem: I want to use CSS to apply images as bullet styles. However, I want to be able to apply VARIOUS, MULTIPLE styles in the same document. For example, let's assume I have a set of categorized hyperlinks on a...
13
49877
by: Matt | last post by:
I would like to set the "list-style-type" to be a hyphen (-). How can I accomplish this in a style sheet. I tried list-style-type: hyphen; and list-style-type: dash; but neither worked. I also tried adding this to the style sheet (with the list-style-type set to none in the UL element). LI:Before { content: "- "; }
4
1729
by: deko | last post by:
I've created an mde out of my mdb in and effort to prevent users from changing settings/forms/etc. But I've discovered that the database window is still available if I hold down the Shift key when opening the mde. Forms can no longer be opened in Design View, which is good, but queries and tables are still vulnerable. I've unchecked "Display Database Window" in Tools >> Start Up, but that does not seem to help if the Shift key is held...
0
2445
by: Chuck36963 | last post by:
Hi all, I've been working on a listing problem and I can't figure out how to work it out. I have looked far and wide on the web to find answers, but I'd like other peoples input on my project in the whole. I really need MySQL wizz to give me a hand (and maybe refer me to books to get me to the wizz level myself). First off, english is a second language to me and sometimes my sentences might be a little awkward. Please forgive me. Mon...
4
2266
by: Doug Gray | last post by:
Folks, I am looking for a fast but most importantly a bullet proof method to pass and NMEA data stream (GPS output) ascii numeric strings. The best I can offer is: def fint(a): try: return int(float(a)) except: return 0 The reason for this is the quality of the data from the huge variety of
0
8764
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8677
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9266
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9130
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6603
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5926
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4435
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4694
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.