Home > object required > asp error object required string

Asp Error Object Required String

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about vbscript runtime error object required string hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges

Vbscript Object Required String 800a01a8

Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. vbs object required string Join them; it only takes a minute: Sign up “Object required” when using Set in an assignment up vote 2 down vote favorite call main() sub main() Dim scmd Set scmd = "c:\windows\system32\cscript.exe //nologo c:\s.vbs" createobject("wscript.shell").run scmd,0,false end

Vbscript Object Required 800a01a8

sub It gives me error: Object required: '[string: "c:\windows\system32\"]' Code 800A01A8 vbscript asp-classic share|improve this question edited May 13 '14 at 21:19 Ekkehard.Horner 29.9k11934 asked May 13 '14 at 14:10 el ninho 1,32693662 4 Just delete set its only for object references not basic variable assignments –Alex K. May 13 '14 at 14:13 Because of the existing answers I decided to answer this but usually I would be asking you what have you tried? Just object required error vbscript posting here as "my code" and "It gives me error:" is not a good fit for this site, please try to improve your question or I fear it may end up being removed. –Lankymart May 13 '14 at 16:02 2 BTW, that was a horrible title. I just edited your title, and I like mine better. What do you think of it? –John Saunders May 13 '14 at 17:38 @JohnSaunders Better :) –Lankymart May 13 '14 at 19:09 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote Update As it's not clear feel it best to point out your Object Required issue is due to this line Set scmd = "c:\windows\system32\cscript.exe //nologo c:\s.vbs" This is because an Object is expected but you are assigning it a string, by removing the Set your code will work (As Ekkehard.Horner has pointed out). Below is my interpretation of situation. First looking at your code it almost looked like it had mixed the instantiation of the WScript.Shell object with the command line for the .Run() method. It was my first stab at breaking down the code, rearranging it then putting it back together. Original Answer Your Set scmd should be instantiating the WScript.Shell (As Ekkehard.Horner points out you can use Server.CreateObject("WScript.Shell").Run for a one off reference but I wouldn't recommend it). The .Run() should be executed by the

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the

Object Required Wscript Error In Vbscript

company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions

Vbscript Object Required String

Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million error 424 object required vbscript programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error Type: Microsoft VBScript runtime (0x800A01A8) Object required in asp up vote 0 down vote favorite I m new asp.. http://stackoverflow.com/questions/23633643/object-required-when-using-set-in-an-assignment And tried to access with code But it shows error like this., Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' on line 163 The error showed because of this lines, <% do while not getgroups2.eof pkOrgGroups2=getgroups2("pkOrgGroups") ogGroup2=getgroups2("ogGroup") ogLogo2 =getgroups2("ogLogo") %> May i know for which reason of my code it shows like this? Thanks in advance. vbscript asp-classic share|improve this question edited May 30 '15 at 7:14 asked May 30 '15 at http://stackoverflow.com/questions/30543119/error-type-microsoft-vbscript-runtime-0x800a01a8-object-required-in-asp 6:35 sandhu 5211 Pretty sure that's classic ASP, not ASP.NET. They are two different things.... –Tim May 30 '15 at 6:39 @Tim: i edited my post.. –sandhu May 30 '15 at 7:14 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted There are two sure ways to get an "Object required" error: Trying to use Set when assigning a non-object: >> Set x = "non-object/string" >> Error Number: 424 Error Description: Object required Trying to call a method on a non-object: >> WScript.Echo TypeName(x) >> If x.eof Then x = "whatever" >> Empty Error Number: 424 Error Description: Object required or: >> x = "nix" >> WScript.Echo TypeName(x) >> If x.eof Then x = "whatever" >> String Error Number: 424 Error Description: Object required As there is no Set in the code you posted, one has to assume that getgroups2 is not an object. Use TypeName() to check. share|improve this answer answered May 30 '15 at 8:35 Ekkehard.Horner 29.9k11934 @Ekkehard.Horner: i need to use some condition.. can you please help? –pcs May 30 '15 at 11:02 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password P

this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you http://www.vbforums.com/showthread.php?683834-Object-required-String-quot-xxxx-quot want to visit from the selection below. Results 1 to 3 of 3 Thread: Object required : '[String: "xxxx"] Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to http://www.webdeveloper.com/forum/showthread.php?276549-Microsoft-VBScript-runtime-error-800a01a8-Object-required Threaded Mode Jul 10th, 2012,10:29 AM #1 foufou_qc View Profile View Forum Posts Thread Starter New Member Join Date Jul 2012 Posts 2 Object required : '[String: "xxxx"] Hi What is my error? Code: Const ForReading = 1 Const object required ForWriting = 2 Set objArgs = Wscript.Arguments If objArgs.Count <> 3 then Wscript.Echo "Manque des paramètres: Fichier ASCII, Valeur recherche puis Nouvelle valeur" End if For I = 0 to objArgs.Count -1 'rgs.Count - 1 WScript.Echo objArgs(I) 'vérifie mes paramètres Select Case I Case 0 : Set FichierASCII = objArgs(I) Case 1 : Set ValeurRecherche = objArgs(I) Case 2 : Set NouvelleValeur = objArgs(I) Case Else : Wscript.Echo "trop de parametres: Fichier ASCII, Valeur recherche puis Nouvelle valeur" object required string End Select Next Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(FichierASCII, ForReading) strText = objFile.ReadAll objFile.Close My first image is my parameter before set to FichierASCII. My second image is my error line 14 : Case 0 : Set FichierASCII = objArgs(I) Why? Thank's a lot Attached Images Reply With Quote Jul 10th, 2012,12:30 PM #2 techgnome View Profile View Forum Posts PowerPoster Join Date May 2002 Posts 29,748 Re: Object required : '[String: "xxxx"] since the objArgs are strings, the variable shouldn't be set.... Set FichierASCII = objArgs(I) Set is only needed for objects... which isn't what you're dealing with here... it should be a simple assignment: FichierASCII = objArgs(I) -tg * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.* * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.* * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft * * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? * Reply With Quote Jul 10th, 2012,03:24 PM #3 foufou_qc View Profile View Forum Posts Thread Starter New Me

required: '' If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 3 of 3 Thread: Microsoft VBScript runtime error '800a01a8' Object required: '' Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-18-2013,08:43 AM #1 Mwackers View Profile View Forum Posts Registered User Join Date Apr 2013 Posts 1 Microsoft VBScript runtime error '800a01a8' Object required: '' I setup up a test connection to input data from a form to a mysql database. However, I received the following error: Microsoft VBScript runtime error '800a01a8' Object required: '' /datainputstatus.asp, line 20 Form- http://www.middletownplanning.com/form2.html Processing ASP- http://www.middletownplanning.com/datainputstatus.asp (I've noted line 20 below with "<---- Line 20") <%@ Language=VBSCRIPT %> ShotDev.Com Tutorial <% Dim ConnectionString,strSQL,objExec ConnectionString="DRIVER={MySQL ODBC 3.51 Driver}; SERVER=planning.readyhostingmysql.com; PORT=3306;" &_ "DATABASE=contactinfo; USER=mwackers; PASSWORD=*password*; OPTION=3;" strSQL = "" strSQL = strSQL &"INSERT INTO forminput" strSQL = strSQL &"(1name,2email,3comment) " strSQL = strSQL &"VALUES " strSQL = strSQL &"('"&Request.Form("1name")&"','"&Request.Form("2email")&"', '"&Request.Form("3comment") Set objExec = Conn.Execute(strSQL) <------ Line 20 If Err.Number = 0 Then Response.write("Save completed.") Else Response.write("Error Save ["&strSQL&"] ("&Err.Description&")") End If Conn.Close() Set objExec = Nothing Set Conn = Nothing %> here is the form: Process the HTML form data with the POST method

name:
email:
comments: