ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old May 8th, 2003, 11:20 AM
suran78 suran78 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 suran78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post Getting this error:Microsoft VBScript runtime error '800a01a8'

My lookup function that creates a.txt lookuptable is giving thi error. The function looks like this:
Function loadLookupList(ByVal luList, ByVal keyType, ByVal tblName, ByVal sortField)
'
' load table into application dictionary
'
Dim oDB, oConn, oRs, sqlStmt
Dim oFSO, oText, fn

fn = Server.MapPath("/virtual") & "\lookups\lookup" & tblName & ".txt"
sqlStmt = "SELECT * FROM " & tblName
If sortField <> "" THen sqlStmt = sqlStmt & " ORDER BY " & sortField

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")
Set oText = oFSO.CreateTextFile(fn,True)

Set oDB = New clsDB
result = oDB.Open
If Not result Then Exit Function
Set oConn = oDB.Connection

Set oRs = oConn.Execute(sqlStmt)
While Not oRs.Eof
key = oRs(0)
buffer = ""
For i = 1 to oRs.Fields.Count - 1
buffer = buffer & "#" & oRs.Fields(i)
Next
value = Mid(buffer, 2) ' strip leading #
oText.WriteLine(key & "," & value)
oRs.MoveNext
Wend
oText.Close

result = luList.LoadValues(fn, keyType)

loadLookupList = (result = 0)

Set oFSO = Nothing
Set oText = Nothing
Set oRs = Nothing
Set oConn = Nothing


End Function

The result = luList.LoadValues(fn, keyType), is giving this error :

Microsoft VBScript runtime error '800a01a8'

Object required: 'luList'

//includes/DBLookup.asp, line 519

Does anyone has any idea why ??? Your is very much needed.

Thanks.
Suran

Reply With Quote
  #2  
Old May 9th, 2003, 12:14 PM
Pasiphae1213's Avatar
Pasiphae1213 Pasiphae1213 is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Pennsylvania
Posts: 171 Pasiphae1213 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Pasiphae1213 Send a message via Yahoo to Pasiphae1213
The function looks okay. Can you post the code that is calling the function? Apparently the first parameter being passed isn't a valid object... that's what it seems to me. However, I am not an expert at ASP, so I may be wrong.

Reply With Quote
  #3  
Old May 9th, 2003, 12:17 PM
suran78 suran78 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 suran78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This is the calling function:

Function initLookup()
initLookup = loadLookupList(luProdClass, 12, "ProdClass", "Name")
End Function

Thanks for helping
Suran

Reply With Quote
  #4  
Old May 19th, 2003, 10:21 PM
mohecan mohecan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne, Australia
Posts: 212 mohecan User rank is Private First Class (20 - 50 Reputation Level)mohecan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Have you identified line 519?
My initial thoughts are that the object luList has not been initialised before calling the function, or that the luList you are passing is not set up correctly.
__________________
How can I soar like an eagle when
I'm flying with turkey's?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Getting this error:Microsoft VBScript runtime error '800a01a8'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway