So I was just wondering if this would work or if not, is there a work around? View Replies View Related Unterminated String Constant Error I am trying to resize images which have been retrieved from my database using 2 DLL files. Dim Array error - expected integer constant 2. 'Expected Literal Constant' for Public Const 3. You may have to register or Login before you can post: click the register link above to proceed. Source
View Replies View Related Expected ';' I am getting the error below and can't get it figured out. Receiving this message :Microsoft VBScript compilation error '800a0409' Unterminated string constant The ASP code is : View Replies View Related Unterminated String Constant how do i put something like thisresponse.write "hello Within procedures, constants are always private; their visibility can't be changed.
Results 1 to 2 of 2 Thread: Can anybody give me further details about the message:"Expected literal constant" Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Try Free For 30 Days Suggested Solutions Title # Comments Views Activity want to make the replica of this web based application, which tools are needed. 7 110 184d Issue with Expected 1. But get this error: Microsoft VBScript compilation error: Expected literal constant Lookup on MSDN: You declared a constant, but assigned it a variable expression (a value that can change).
Solved constants Posted on 2000-01-20 ASP 1 Verified Solution 2 Comments 1,294 Views Last Modified: 2012-08-13 Hi, Im using this code in my asp file <% cosnt base_Number = 0 const I found an interesting answer here that allows one to cheat, at some level, so the above can be done with: Execute "Const X = " & (1 + 2) But Constant variable should contain only literal string, no variables no objects no function calls etc. http://forums.devshed.com/asp-programming-51/expected-literal-constant-error-question-please-387941.html Remove the Const designation from the ones you want to add to or use it in the creation of a new variable ...
Hope this helps Alberto Gaona Enovar Quote:> I am receiving the following error: > Microsoft VBScript compilation error '800a0402' > Expected integer constant > /ticketsplus/newevents.asp, line 21 > Dim events(intRecCount) > I'm querying 2 tables in 2 seperate recordsets and comparing set 2 to set 1 using ASP. Thanks, Mike
Thanks, Sean Mon, 21 Oct 2002 03:00:00 GMT Sean#6 / 6 Expected integer constant Thanks a lot, it worked. But the ability to create custom scanning profiles a… Document Imaging Document Management OCR Images and Photos Photos / Graphics Software How a small business owner can reduce the cost of Question 0 Sign in to vote Hello, I found some code online that will create a zip file out of the specified folders. Throughout my code when I am doing copy and move commands, referencing those variables works.
Too Few Parameters. this contact form Within this code, it could check the current time and if it's the top of the hour again, my database gets queried however I have a feeling that my web host View Replies View Related Constant Called Constant Value I try to make this:const server="hello"const conn= server & ".xxx.com"but it indicate got literal problem. Never be called into a meeting just to get it started again.
Since I do not want to type the source and destination paths over and over again, I stored their locations in two variables. Within a script, the default visibility of a script-level constant can be changed using the Private keyword. View Replies View Related Unterminated String Constant I've searched these forums but no joy - am sure this is a newbie error but I'm still tearing my hair out. have a peek here Expected 1.
Constants cannot contain runtime code. I found one called Poll Manager on AspPlanet.net (http://www.aspplanet.net/viewdl.asp?itemid=6). View Replies View Related Expected End When adding an item to cart I get the following message and I dont know why:Microsoft VBScript compilation error '800a0401' Expected end of statement /sc_addToCart.asp,
Get 1:1 Help Now Advertise Here Enjoyed your answer? I'm querying 2 tables in 2 seperate recordsets and comparing set 2 to set 1 using ASP. I had an sql statement before and it works. Worse case senario is I could create a visual basic application that sits on my desktop and just works off of there but I would prefer to develop this in a
I'm able to access my database on my server through a DataConn_Open.asp page. Try this : Dim conn, sConnection Dim DB_CONNECTIONSTRING DB_CONNECTIONSTRING = "Provider=Microsoft.Jet.OLEDB.4.0;" _ & "Data Source=" & Server.MapPath("project.mdb") & ";" Busy Reply With Quote Quick Navigation Scripting - Client Side Top Site Join & Ask a Question Need Help in Real-Time? Check This Out Microsoft Customer Support Microsoft Community Forums MenuExperts Exchange Browse BackBrowse Topics Open Questions Open Projects Solutions Members Articles Videos Courses Contribute Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing
So, if "that includes all arithmetic or logical operators" then logically I expect I can do something like this: Const X = (1 + 2) But that brings the error "Expected If you are trying to make its value different at run time then it is not a constant it is a variable and you should not use the Const keyword. Expected 1. Expected 2. "Error 500: Expected Statement" AdUseServer Constant Undefined Unterminated String Constant Unterminated String Constant What Is The ADO Constant For Text Datatype?
Intentional ASP Constant Loop Unterminated String Constant? The time now is 10:41 AM. Would like to have Const BU_Server - result1 Now it is set for this: Const BU_SERVER = "http://10.72.24.10" All that I want is to be able to have the user any expert can help me on this?
or perhaps there is another way of doing this? View Replies View Related What Is The ADO Constant For Text Datatype? Code: View Replies View Related Error (0x800A0401) Expected End Of Statement during the creation of an HTML page using asp variable I have thisproblem:Microsoft VBScript compilation (0x800A0401) Expected end of statement/asp/pages/connect1_1.asp, Now I need to take a field and split it into 2 textboxes.
What is the distinction between Justification and Salvation? (Reformed point of view) What is a TV news story called? Covered by US Patent. Gee I wonder where you work? I changed it and i get this error so i know it's within the sql statement.
Code: View Replies View Related Error (0x800A0401) Expected End Of Statement during the creation of an HTML page using asp variable I have thisproblem:Microsoft VBScript compilation (0x800A0401) Expected end of statement/asp/pages/connect1_1.asp, We decided that constant folding in VBScript was unnecessary and would take resources away from more important features. –Eric Lippert Mar 12 '15 at 22:42 add a comment| 1 Answer 1 Expected 1. Stop the Help Vampires:http://slash7.com/2006/12/22/vampires/ VB is NOTVB.Net which is NOTVBA which is NOTVBScript #6 DiGiTAL.SkReAM Total Posts : 1291 Scores: 8 Reward points : 0 Joined: 9/7/2005Location: Clearwater, FL, USA