Isnumeric Return True
why does isnumeric return true?
a=""
if isnumeric(a) then
response.write("test")
end if
empty isnt numerical is it?
why does isnumeric return true?
a=""
if isnumeric(a) then
response.write("test")
end if
empty isnt numerical is it?
I am using an import process that scans an html file and exports data toa sql database table.One of the fields I import, on occasion has 2 numeric characters at the
very end. For example "thename 04".What I need to do is delete those numeric characters, if they exist.I thought about something like this:
if isnumeric(right(thename,2))=TRUE then
but what's next? How do I make a new THENAME field without those last two numeric characters if they exist?
if Shift = "" Then
error_list.add "589343","desired shift must be specified."
b_error = true
end If
for this function, how can i implement isNumeric to get an error msg for the user so tell them not to key in char but to enter only INT.
I am using the recordset below but I only want to inner join fixtures on teams if Fixtures.HomeTeamID is a numeric value, how could I do this? Code:
Dim rsHomeT
SET rsHomeT = Server.CreateObject("ADODB.Recordset")
rsHomeT.Open "SELECT * FROM Fixtures INNER JOIN Teams ON Fixtures.HomeTeamID = Teams.TeamID WHERE Fixtures.LeagueID = " & ID & " ORDER BY iYear, iMonth, iDay ASC;", objConn
In my asp page (which I am using VBScript for)....if I use the IsNumeric(x) function, will this only evaluate true for integers x??? Or will it also evaluate to being true if x contains a decimal point????
View Replies View RelatedI wrote a stored procedure to INSERT a new row in the database. It returns the new ID via @@IDENTITY. This value is read by my ASP and stored in variable intNewID. The value displays fine via <%= intNewID %>. But when I tested it using IsNumeric(intNewID), it returned False.
View Replies View RelatedI have received the following feedback for the two functions bellow:
"The ISNUMERIC test is WORTHLESS for checking for an INT value, because
ISNUMERIC will happily accept DOUBLE values, such as 89.11998811777 and
other values that are simply *NOT* INT values." Code:
I'm pretty new at this so if someone could tell me what I need to do to the foloowing code I would really appreciate it!
strSQL = "SELECT * FROM chapmeetreq2 WHERE chapter = '" & session("chap") & "' and entrydate = '" & date() & "' order by req_id desc" ...
I've been using text files for Tab-Delimited/ADO/ASP sites so that users can
update and display their products lists through my system with relative
ease.
Only problem is that for the last few months or so, this system has been
generating loads of timeouts. ISP has said that I should be looking to
upgrade my system, as it is the mechanics of it that are creaking under the
strain. My queries are:
a) Which REALLY performs better OLEDB DSN-less or ODBC DSN-less?
b) If I convert the system to use 1 Access DB rather than 50-odd
tab-delimited text files will this REALLY perform better in relation to
timeouts?
To give you some idea of the problems, the site can viewed by going to
www.bardwells.co.uk and clicking the Product List link.
I just can't understand it because the pages on the whole are very lean and
zippy (esp. ADSL), but its these exact same Broadband users who seem to have
more trouble with timeouts than dial-up ones.
in one of my sql queries on an asp page i am trying to select some data from an access table. The problem is the search criteria is based on a yes/no field. I need to find any record where the value is null or true. So far i have this:
if ISNULL(orseof("Returned")) OR orseof("Returned") = True then
the ISNULL section works it is just the = true bit that doesn't.
How can my ASP serverscript read a JPG file and create a small thumbnail
image? I don't mean simple resizing, but true resizing so that the image
actually gets smaller in size. Is this possible without the use of a 3rd
party component?Does anyone have a code example for me?
I'm getting this error:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: 'True'
/Featured.asp, line 28
on this code:
If response.buffer is set to true, and no response.flush has been executed, is it accurate to expect that my browser should not be rendering the content which I (well Ok, someone else) is sending in response.write statements?
View Replies View Relatedi m trying to create a true and false quiz which accesses the questions from a access database processes the results and then writes back to the database
I dont know how to structure the code for the radio buttons,i also need to give the user immediate feedback, but i cant use pop up boxes
How do I evaluate a RegExp to true or false? Like I want to know if the value is correct or not using this snippet. Code:
View Replies View RelatedI am struggling with opening a database and reading data from it via SQL. Please tell me what is wrong with this code. I am trying to open up different tables and get information from them and put it on the one page. Code:
View Replies View RelatedADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
This is the error I recieve when trying to run my site. I know why. I am passing a non existed URL Parameter. However I would like to recieve a MsgBox that says that such record doesn't exist. Code:
It says I have 8 records but is not displaying them.
Error:
ADODB.Fielderror '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /deleteevent.asp, line 33 Code:
I have several pages I set up in my web site and I am having trouble with two of them - search and results. The stat_search uses a form which seems to work right and when I test the recordset on the stat_results page and enter a value it returns the right results.
When a value is entered from the stat_search page the results page displays the records with the right value and the Records _ of _ indicates the right number of records but when I use the Next or Last arrows to move to the next record I receive the ADODB.Field error. Code:
Been having problems sending a true/false value to my database from a checkbox/radio group. Using checkboxes.... Code:
View Replies View RelatedHowcome it doesn't work?
ADODB.Fielderror '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /gemetria/kjvresp3.asp, line 0
It was working before!!! Code:
This is the error I'm getting:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/ism5315/readtrends.asp, line 46
What I'm trying to do is select the records from my table that match the sensor and gauge the user selects. I have time fields that are optional, and I'm trying to get the page to work if the user selects no time frame first.
Of course, there can be mutliple records for the gauge and sensors, so I created a loop that should run thru and select them all. But I am getting the above error. But I know I am getting into the loop because I have included a response.write sql to verify I am selecting the correct objects. Code:
Here's what I want to do (i'm kind of there in JavaScript, but want to move it to ASP).
I have 17 different html pages. quiz1.html > quiz17.html.
The user says take a quiz and it pops up a window holding quiz1.html.
Within each page is a true/false question. Upon answering the user is told:
1. what they answered.
2. if that is correct or not
3. a corresponding sentence about the question.
4. an image the corresponds to if they were corect or not.
(This is all done in javascript).
----
However, now I want to take these 17 questions and randomize them and choose 6 questions.
For example:
The window pops up and it's question 1 they do that then move to the next one. 1-6 (random out of 17.
I'd like to do this in ASP.
Exact error message:
ADODB.Fielderror '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/admindemo/profiles_browse.asp, line 0
Howcome it doesn't work?
ADODB.Field error '80020009'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/gemetria/kjvresp3.asp, line 0
It was working before!
in my web page, i would like to user to see a ticked checkbox should the database = True however, i cannot seems to be getting it. Would anybody be able to help me out? Code:
View Replies View RelatedI have a big asp file that has an error under certain conditions -- totally
repeatable. However, it only fails when I set response.buffer = True at the
top. WHen I set it False in order to debug it, it works every time! I even
set it to True, but did a .Flush just before the error, and the error won't
happen.
It only happens when response.buffer is True and no .response.flush is issued.
The error is a string variable turns-up empty and crashes a function
requiring a date. I could test for this before the line where it crashes,
but where did my data go? Why is the buffer affecting it?
Is there a way I can assign a value of true or false to a VBScript variable? I have a function where I want to initiate a value of false: Would this work? Code:
View Replies View Relatedwhat is the easiest way to display Yes/No, True/Falst, On/Off MS Access fields as check marks on an ASP page? it would be either checked or unchecked.
View Replies View Relatedwhat is wrong in the code bellow to kill iexplore.exe process after
processing my page??
'»»Before comes routines to access data base and to send email.
Set objWshell = Server.CreateObject("WScript.Shell")
objWshell.Run "%COMSPEC% /C kill iexplore.exe", 0, TRUE
I updated to aspx last three month,after developing serveral
applications,Idecided to downgraded to asp, following is my reasons:
1.in ASPX,the page format is hard to control,in ASP u can change every html
as u like ,but in aspx, a aspx control decide the page format,and its hard
to change the format.
2.ASPX is said to be faster that asp, but it is based on too-often
communication back to the server,for example,u click a radio a button,there
is new page request, but in reality,such a communication is
bandwidth-consuming and time-consuming. the user only need to submit the
form, and the exchange between IE and Server was minimazed.
the Speed of ASPX is not useful for most sites, for bigger sites, the speed
increase is singnificant,but for small sites with less traffic, the speed of
ASP is quite enough.
3.ASPX is based on Object Orinted Programming, but in most small sites,
Procedure orinted programming is used, we never build objects, and POP is
more efficient.ASPX is for three-tiered structure with a single layer of
business logic component, but in reality, most of us used two-tier
structure,that is Presetation layer and Datalayer, we can layout the page
and change the database in a single page, quite effienct too.
I want to return a 404 response from an ASP script (IIS 5).
Response.Status lets me set the response string, but if I don't include any
HTML text myself, the result is an empty page.
Is there a way to 'redirect' it to the server's default 404 response, as if
the URI really doesn't exist, but without really redirecting it so the URL
isn't replaced in the browser's address bar?
I am trying to replace a huge chunck of code that currently I incorporate
with an #Include directive. The program rarely has to flow through that
code, so I thought it would be better if I used Server.Execute.
I found I can pass data TO the called asp file by creating an HTML <input>
and erading it after I get there.
However, I also need to read back ONE variable that the called file must
set. I cannot figuer out how to do that. My backup positions are (1) I can
keep on using the #Include technique, and (2) I can use a database to bridge
the gap.Isn't there a way to carry data BACK TO the calling asp file FROM
THE CALLED asp file?