ASP Typen unverträglich

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • ASP Typen unverträglich

    hallo zusammen.

    Hab ein kleines probelm. komme leider nicht mehr weiter mit dem script.

    Fehlermeldung:

    Laufzeitfehler in Microsoft VBScript error '800a000d'
    Typen unverträglich

    /mailparser/Default.asp, line 46


    der script:

    checksql = "SELECT domain,sum(groesse) as total FROM mail_log group by domain order by total desc"
    set rsCheck=connTraffic.execute(checksql)

    if not rsCheck.eof then%>
    <table cellpadding="0" cellspacing="0" border="0" width="780">
    <tr>
    <td colspan="4"><hr></td>
    <td>&nbsp;</td>
    </tr>
    <% transf = 0
    count = 1
    do while not rsCheck.eof and count <= 10
    [COLOR=red]size = formatnumber(rsCheck("total") / 1024 / 1024,2)[/COLOR]
    domainresult = rsCheck("domain")%>
    <tr>
    <td width="20">&nbsp;</td>
    <td width="30"><%=count%></td>
    <td width="200"><%=domainresult%></td>
    <td width="100"><strong><%=size%>&nbsp; MB</strong></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td colspan="4"><hr></td>
    <td>&nbsp;</td>
    </tr>
    <%rsCheck.movenext
    transf = transf + size
    count = count +1
    loop%>

    die zeile wo es verweist wird ist rot markiert.

    Danke für die hilfe.....
    Zuletzt geändert von chris010; 20.05.2003, 09:42.
    MFG CHRIS
    FlowFact AG

  • #2
    Hi,

    in der MSDN habe ich folgendes gefunden:

    Value.formatNumber

    Formats a numeric value using number formatting.

    Syntax:
    public static String formatNumber( double value, int decimalPlaces, int options )

    Parameters: options

    A combination of zero or more flags from the NumberFormat enumeration.
    -----------------------------------------------------------------------------------------------
    NumberFormat:

    NumberFormat Fields
    Fields Description
    GROUP_DIGITS Specifies that numbers should be grouped with a thousands separator; for example, "1,000,456".

    LEADING_DIGIT Specifies that a leading digit should be used.

    NEGATIVE_PARENS Specifies that negative values should be placed inside parentheses.

    NO_GROUP_DIGITS Specifies that numbers should not be grouped with a thousands separator; for example; "1000456".

    NO_LEADING_DIGIT Specifies that a leading digit should not be used.

    NO_NEGATIVE_PARENS Specifies that negative values should not be placed inside parentheses.
    -------------------------------------------------------
    NumberFormat.GROUP_DIGITS

    Syntax

    public static final int GROUP_DIGITS;
    Setz das Marco ein und gut ist...

    cu

    Blaster
    Yuppi, endlich Elite ...

    Kommentar


    • #3
      ne, ist nich wegen das. sondern das in der tabelle die zeile als int (4) ist. Ich hab jetzt einfach den float genommen (8). Jetzt gehts. Die zahlen sind einfach zu gross daher die fehlermeldungen. ;o)
      MFG CHRIS
      FlowFact AG

      Kommentar

      Lädt...
      X