@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> have any of you paid a service to beef up your resume?
<1> I paid cisco for my exams/certs if that counts :p
<1> how so?
<2> heh
<2> i think he means a resume service elf
<2> anyone i speak to about certs now tells me only idiots need certs and they wouldn't hire anyone that had one
<2> it went from odd, to accepted, to die you stupid certed bastard
<0> [Playing] Put your hands up - Benny Ben***i (Hypnotica) [0:00min/ Electronic/ rating: 0]
<3> hello, is this channel for asp vbscript help or for the snake "asp"
<3> ?
<4> check topic
<3> ahh, yeah sorry, my bad
<3> so i have a now 2 hour problem with dictiornay object, anyone have a minute for some help?
<4> sure
<3> thanks, ill try to be brief in teh explanation
<3> basically i have an object that fills a dictionary object form a database query



<3> with .add unique_id, <another object>
<3> then i just want to go through the dictionary object and list all the objects aggregated
<3> so i do, a = m_Contents.Items, but a.Count returns an object required error
<3> so does a(1)
<4> have you instantiated it properly?
<4> server.createobject isn't it?
<3> if i do m_Contents.Count that returns 1
<3> i can also do m_Contents.Item(74).Created
<3> so clearly it must be a dictionary object
<3> yes i instantiate it as a server.createobject("Scripting.Dictionary")
<4> k
<3> is there a way to write out the object type in asp?
<4> just refreshing myself with dictionary
<4> .Items is an array
<4> and can be counted using ubound as other arrays can
<4> according to what I'm reading
<3> indeed
<4> sorry just to backtrack a bit, what do you mean by aggregated?
<3> well it just loops through a recordset and adds each one by one, the key is the database key and the value is another object
<4> right...
<4> you said you wanted to go thru the object and list them aggregated
<3> well teh dictionary objec tis p***ed back tos omething else
<3> i just want to run through the dictionary object and lits all its keyes
<4> right
<3> in fact now i am all the way into my object and doing it right in there and it still doesnt work
<3> response.write "CONTENTS COUNT: " & m_Contents.Count & "<br>"
<3>
<3> dim i,s, a
<3> a = m_Contents.Items
<3>
<3> response.write "CONTENTS ITEM ARRAY SIZE: " & ubound(a)
<3> that outputs:
<3> CONTENTS COUNT: 1
<3> CONTENTS ITEM ARRAY SIZE: 0
<3> how is that even possible?
<3> the dictioanry object has one item in it
<3> yet .Items = 0?
<4> can you do a ubound(m_Contents.Items)?
<4> infact, this could be something to do with com I've seen before
<4> comment out the count
<4> and run it again
<4> I've seen com objects nuke themselves once accessed
<4> the idea is to p*** them into local vars then destroy them
<3> if thats it im sending a nuke to MS
<4> hehe
<4> I noticed it using someone's api
<3> no i commented it out, and simply go a = m_Contents.Items, next line print out ubound(a) still returns 0
<3> i also changed it so i print out right away ubound(m_Contents.Items) and that also puts out 0
<4> curious
<4> and m_Contents is the dictionary, it's not a wrapper or anything?
<3> yeah, its the actual dictionary object instantiated in Cl***_Initialize()
<3> response.write "UBOUND(m_Contents.Items): " & ubound(m_Contents.Items) & "<br>"
<3> response.write "CONTENTS COUNT: " & m_Contents.Count & "<br>"
<3> that outputs:
<3> UBOUND(m_Contents.Items): 0
<3> CONTENTS COUNT: 1
<3> well i think ubound is right in saying its 0
<3> it looks like arrays start at 0 in vbscript while dictionaries start at 1
<3> but even then, why does a(0) put out an object error
<3> wow is this terrible or what
<4> arrays start at 1 btw



<3> says here; Arrays in ASP/VBScript have a zero based starting index.
<4> ummm
<3> i mean the problem is ***igning a = m_Contents.Items, i dont understand why that is though
<3> if i create the thing manually it works
<3> its crated by my script it doesnt work, although i verify that it is a dictionary objectg
<3> i mean its not very logical
<4> if you create what manually?
<3> well if in the same spot i go dic = server.createobject blah blah blah and .add a couple of items it works
<4> want to paste the code you use to fill the dictionary?
<3> dim dic
<3> set dic = server.createobject("Scripting.Dictionary")
<3>
<3> dic.add 10, "hello"
<3> dic.add 20, "world"
<3> dic.add 30, "!"
<3>
<3> a = dic.Items
<3>
<3> response.write "UBOUND(dic.Items): " & ubound(dic.Items) & "<br>"
<3> response.write "CONTENTS COUNT: " & ubound(a) & "<br>"
<4> and filling the other?
<4> use www.pastecode.com btw
<4> to keep the chan clean
<3> yeah sorry, heres the entire cl***: http://www.pastecode.com/11288
<3> here is refined: http://www.pastecode.com/11289
<3> if i uncomment line 7, and comment out line 6, line 11 returns an error
<3> even though both things are dictionary objects and each one has one member
<3> absolutely RIDICULOUS
<3> yeah, i mean ive tried everything its really beyond me why something this simple doesnt work
<0> yea because youve found a bug that NO ONE ELSE has found the 8 years asp has been out
<0> because your just that 1337
<0> lmao
<0> its probably the id-10T error
<4> it'd work as expected in .net :)
<3> yeah, i can see how your really constructive with your comments
<0> and i can see how your a punk bitch who doesnt even know how to use a simple object
<0> so go **** yourself and go back to php or whatever lame *** scripting area you came from
<0> buh bye
<3> ok dude, make the ****er work
<0> who the **** uses ubound with a dicontary object
<4> he wasn't
<5> _Zed_ did :S
<4> dictionary.Items returns an array
<0> a collection
<4> 4guys states .Items is an array
<4> and can be recoursed as such
<0> he just neets to do Set a =
<0> actually not even that
<0> my bigger question is why the **** is he even using cl***ic asp anyway =-)
<4> that shoudln't make a difference
<4> the set that is
<4> http://www.adebisi.com/p_lang/vbscript/dictionary_items.html
<5> goodnight
<0> why isnt he using .Count
<4> he is, but ubound not working is indictive of the fact ***igning items to a local var isn't working
<4> probably cl*** related as vbs cl***es are ****
<0> Set a = dic
<0> a.count
<0> and why isnt he using functions?
<0> anyone have sneaker pimps albums?
<6> @find blond
<7> hey guys :)
<8> yo
<7> is there a way to dynamicaly dimension arrays ( ie. dim arrayname(i) )?
<8> ReDim
<7> awesome...
<7> :) thanks.
<8> yep
<8> hey, asp cl***ic is like dead man, you should check out .Net
<7> haha, yes i hear that all the time. but theres just something beautiful about it. ive got a book on .net downstairs. i should really read it and be converted :)
<7> out of interest, which aspects do you like about .net that leave cl***ic in the dark? :)
<9> Hello
<9> If I have a form with 50 checkboxs, after the form has been submitted is there a way to get all values by doing a request for all of them rather than having to get the data individually?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #asp
or
Go to some related logs:

janeydorr
villalobo pics
#windows
#nhl
#windows
#windows
alcaporno pass
#nhl
what does bonsoir mean
#windowsxp



Home  |  disclaimer  |  contact  |  submit quotes