Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Carl in t Veld

@Carl in t Veld
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • JScript: Scripting.Dictonary: problems with the empty string
    C Carl in t Veld

    I don't understand how in ASP empty strings are handled. I check if if a field in a resultset has indeed a value. If not, I'll add "" to the dictionary. Afterwards, I want to use the items in the dictonary but there's not "" in some fields, but the Object-type null! So I have to test on it and set the string to "" myself :( // oRs is a ADODB.ResultSet // d is a Scripting.Dictionary

    e = new Enumerator(oRs.Fields); for (;!e.atEnd();e.moveNext()) {

    i= e.item(); if (typeof(i.value) != "unknown")

    d.add(i.name, i.value);

    else d.add(i.name, "");

    } arr = (new VBArray(d.Keys())).toArray for (i in arr) {

    q1= d(arr[i]); if (q1 == null) q1= ""; q= Server.HTMLEncode(q1);

    }

    Can anyone help me?

    Web Development sysadmin help question

  • JScript: Scripting.Dictonary: problems with the empty string
    C Carl in t Veld

    I don't understand how in ASP empty strings are handled. I check if if a field in a resultset has indeed a value. If not, I'll add "" to the dictionary. Afterwards, I want to use the items in the dictonary but there's not "" in some fields, but the Object-type null! So I have to test on it and set the string to "" myself :( // oRs is a ADODB.ResultSet // d is a Scripting.Dictionary

    e = new Enumerator(oRs.Fields); for (;!e.atEnd();e.moveNext()) {

    i= e.item(); if (typeof(i.value) != "unknown")

    d.add(i.name, i.value);

    else d.add(i.name, "");

    } arr = (new VBArray(d.Keys())).toArray for (i in arr) {

    q1= d(arr[i]); if (q1 == null) q1= ""; q= Server.HTMLEncode(q1);

    }

    Can anyone help me?

    Web Development sysadmin help question

  • JScript ADODB.COMMAND: can someone provide some examples?
    C Carl in t Veld

    I have an html-'template' with a form in it. When it is submitted, the entries will add to an ADODB.COMMAND to update a record in a database. I am having difficulties with empty form-entries: ADODB.COMMAND.Execute() is complaining about 'cannot use 0-length strings'. A simple workaround like if (s == "") s= " "; does the trick, but that's ugly: I don't want random spaces to appear in my database! Anyone?

    Web Development html database question announcement lounge

  • JScript ADODB.COMMAND: can someone provide some examples?
    C Carl in t Veld

    I have an html-'template' with a form in it. When it is submitted, the entries will add to an ADODB.COMMAND to update a record in a database. I am having difficulties with empty form-entries: ADODB.COMMAND.Execute() is complaining about 'cannot use 0-length strings'. A simple workaround like if (s == "") s= " "; does the trick, but that's ugly: I don't want random spaces to appear in my database! Anyone?

    Web Development html database question announcement lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups