Announcement

Collapse
No announcement yet.

procesing into smtp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    procesing into smtp



    Hello boys


    I have a trouble with a minus sign(-) when I try to aplication the same
    script rutine in a website or in a smtp process.


    In a website these procedure work well

    if the IMP value is one debit
    <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
    <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">

    if the IMP value is one credit


    <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + &[ctac.d.IMP]}">
    <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP] }">

    the debit acumulated in xsaldo are a negative number if not have a credit.

    In a smtp proceess the same rutine xsaldo are 0 (zero) not acumulate, and
    not decrese


    if the IMP value is one debit
    <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
    &[ctac.d.IMP]}">'}">
    <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP]
    }">'}">


    if the IMP value is one credit

    <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
    &[ctac.d.IMP]}">'}">
    <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP]
    }">'}">

    I suppose the problem are in a variable definiton (or aplication) when I
    try to accumulate or decrese saldo


    thank's of advance

    Roberto

    _________________________________
    Alfa Centauro Custom Systems
    Copahue 3480 - San Carlos de Bariloche
    Rio Negro - Patagonia Argentina



    #2
    procesing into smtp



    A couple of questions. Why are you doing:

    <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">

    instead of:

    <MvASSIGN NAME= "l.xting" VALUE="{xting + ctac.d.IMP}">?

    You don't need to use a macro in there.

    Within your SMTP, you've put a lot more stuff than you need. Try doing
    your MvASSIGN's this way:

    <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + ctac.d.IMP}">

    Regards,

    Scot Ranney
    <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>


    ===============================
    Original Message:
    ===============================
    Thursday, January 29, 2004, 5:41:12 PM, you wrote:

    Hello boys


    I have a trouble with a minus sign(-) when I try to aplication the same
    script rutine in a website or in a smtp process.


    In a website these procedure work well

    if the IMP value is one debit
    <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
    <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">

    if the IMP value is one credit


    <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + &[ctac.d.IMP]}">
    <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP] }">

    the debit acumulated in xsaldo are a negative number if not have a credit.

    In a smtp proceess the same rutine xsaldo are 0 (zero) not acumulate, and
    not decrese


    if the IMP value is one debit
    <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
    &[ctac.d.IMP]}">'}">
    <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP]
    }">'}">


    if the IMP value is one credit

    <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
    &[ctac.d.IMP]}">'}">
    <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP]
    }">'}">

    I suppose the problem are in a variable definiton (or aplication) when I
    try to accumulate or decrese saldo


    thank's of advance

    Roberto

    _________________________________
    Alfa Centauro Custom Systems
    Copahue 3480 - San Carlos de Bariloche
    Rio Negro - Patagonia Argentina


    Comment


      #3
      Array Related Bug?



      When a non-existent array position is tested in a conditional expression, the position is added to the array.

      See test script and results included below.

      Should this be occurring? Is it a bug?

      If so, is it a known bug?


      Test Script:

      <MvASSIGN NAME = "l.number_stack" INDEX = "1" VALUE = "4">
      <MvASSIGN NAME = "l.number_stack" INDEX = "2" VALUE = "9">
      <MvASSIGN NAME = "l.number_stack" INDEX = "3" VALUE = "13">
      <MvASSIGN NAME = "l.number_stack" INDEX = "4" VALUE = "20">

      number_stack: <MvEVAL EXPR="{ l.number_stack }">

      miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">


      <MvASSIGN NAME = "l.a_number" VALUE = "20">

      array position 4 tested

      <MvIF EXPR = "{ l.a_number EQ l.number_stack[4] }">

      </MvIF>

      number_stack: <MvEVAL EXPR="{ l.number_stack }">

      miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">


      array position 5 tested

      <MvIF EXPR = "{ l.a_number EQ l.number_stack[5] }">

      </MvIF>

      number_stack: <MvEVAL EXPR="{ l.number_stack }">

      miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">


      array position 10 tested

      <MvIF EXPR = "{ l.a_number EQ l.number_stack[10] }">

      </MvIF>

      number_stack: <MvEVAL EXPR="{ l.number_stack }">

      miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">



      Results:

      number_stack: 4,9,13,20
      miva_array_max: 4
      array position 4 tested
      number_stack: 4,9,13,20
      miva_array_max: 4
      array position 5 tested
      number_stack: 4,9,13,20,
      miva_array_max: 5
      array position 10 tested
      number_stack: 4,9,13,20,,
      miva_array_max: 10


      lance turner

      latu.net
      web design & programming
      <A HREF ="http://www.latu.net">http://www.latu.net</A>

      Winter Park, FL
      407 644-4492
      [email protected]


      Comment


        #4
        procesing into smtp



        Hi Scot and Roberto,

        This may NOT be the case, but Roberto may be looking into the "value" =
        of the
        "value" of variable 'ctac.d.IMP', in which case a
        miva_variable_value(ctac.d.IMP) may do better than the macro version=20
        &[ctac.d.IMP] ...

        But the first thing that I would check Roberto... are you sure that =
        your
        databases are "open" in the SMTP process?=20

        I apologize for hitting this and running, but I've got to bolt from the
        office and didn't really have time to test my theories; I hope to NOT
        mislead anyone if I haven't thought this through enough...

        Best regards,

        Bob




        > -----Original Message-----
        > From: Scot Ranney [mailto:[email protected]]=20
        > Sent: Thursday, January 29, 2004 9:08 PM
        > To: Roberto Buccino
        > Cc: [email protected]
        > Subject: Re: [meu] procesing into smtp
        >=20
        >=20
        > A couple of questions. Why are you doing:
        >=20
        > <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + &[ctac.d.IMP]}">
        >=20
        > instead of:
        >=20
        > <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + ctac.d.IMP}">?
        >=20
        > You don't need to use a macro in there.
        >=20
        > Within your SMTP, you've put a lot more stuff than you need. Try =
        doing
        > your MvASSIGN's this way:
        >=20
        > <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr + ctac.d.IMP}">
        >=20
        > Regards,
        >=20
        > Scot Ranney
        > <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>
        >=20
        >=20
        > =
        =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=
        =3D=3D=3D=3D=3D=3D=3D
        > Original Message:
        > =
        =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=
        =3D=3D=3D=3D=3D=3D=3D
        > Thursday, January 29, 2004, 5:41:12 PM, you wrote:
        >=20
        > Hello boys=09
        >=20
        >=20
        > I have a trouble with a minus sign(-) when I try to=20
        > aplication the same=20
        > script rutine in a website or in a smtp process.
        >=20
        >=20
        > In a website these procedure work well
        >=20
        > if the IMP value is one debit
        > <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + &[ctac.d.IMP]}">
        > <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo - &[ctac.d.IMP] }">
        >=20
        > if the IMP value is one credit
        >=20
        >=20
        > <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr + &[ctac.d.IMP]}">
        > <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo + &[ctac.d.IMP] }">
        >=20
        > the debit acumulated in xsaldo are a negative number if not=20
        > have a credit.
        >=20
        > In a smtp proceess the same rutine xsaldo are 0 (zero) not=20
        > acumulate, and=20
        > not decrese
        >=20
        >=20
        > if the IMP value is one debit
        > <MvEVAL EXPR=3D"{' <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr +=20
        > &[ctac.d.IMP]}">'}">
        > <MvEVAL EXPR=3D"{'<MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo -=20
        > &[ctac.d.IMP]=20
        > }">'}">
        >=20
        >=20
        > if the IMP value is one credit
        >=20
        > <MvEVAL EXPR=3D"{' <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr +=20
        > &[ctac.d.IMP]}">'}">
        > <MvEVAL EXPR=3D"{'<MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo +=20
        > &[ctac.d.IMP]=20
        > }">'}">
        >=20
        > I suppose the problem are in a variable definiton (or=20
        > aplication) when I=20
        > try to accumulate or decrese saldo
        >=20
        >=20
        > thank's of advance
        >=20
        > Roberto
        >=20
        > _________________________________
        > Alfa Centauro Custom Systems
        > Copahue 3480 - San Carlos de Bariloche
        > Rio Negro - Patagonia Argentina
        >=20
        >=20

        Comment


          #5
          procesing into smtp



          Hi Scot, Robert


          Y try that you said bob and not acumulate :( either.

          look this, if I process smtp in a text plain format work well! but if I do
          in HTML format not!

          The database are open well, other field are ok


          in html format I do this below but I not sure if the MvIf structure works




          <MvASSIGN NAME="l.cambio" VALUE=0>
          <MvASSIGN NAME= "l.xting" VALUE=0>
          <MvASSIGN NAME= "l.xtegr" VALUE=0>
          <MvASSIGN NAME= "l.xsaldo" VALUE=0>

          <MIVA STANDARDOUTPUTLEVEL="">
          <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
          <MvSMTP TO="[email protected]"
          FROM="[email protected]" SUBJECT="Resumen de cuenta corriente"
          MAILHOST="192.168.1.1">
          <MvEVAL EXPR="{'MIME-Version: 1.0' $ l.cr}">
          <MvEVAL EXPR="{'Content-Type: text/html; charset=iso-8859-1' $ l.cr}">
          <MvEVAL EXPR="{'Content-Transfer-Encoding: 8bit' $ l.cr $ l.cr}">
          <MvEVAL EXPR="{'Estimados Sres: &[ctac.d.CUENTA]
          '}">
          <MvEVAL EXPR="{'Le hacemos llegar por este medio el resumen de su cuenta
          corriente correspondiente al mes en curso
          recordandole que personal de
          nuestra empresa pasara entre los dias 5 y 10 a cobrar la factura
          correspondiente.


          Atte, departamento de atencion al cliente.

          Angostura Express'}">
          <MvEVAL EXPR="{'

          RESUMEN DE CUENTA:

          '}">

          <MvEVAL EXPR="{'
          <table width="740" border="0" align="center">
          <thead> <tr>
          <th width="10" bgcolor="#eeeeee" class="text"
          scope=col>Referencia </th>
          <th width="35" bgcolor="#eeeeee" class="text" scope=col>Fecha
          </th>
          <th width="100" bgcolor="#eeeeee" class="text" scope=col>Concepto
          </th>
          <th width="40" bgcolor="#eeeeee" class="text"
          scope=col>Debito </th>
          <th width="40" bgcolor="#eeeeee" class="text"
          scope=col>Credito </th>
          <th width="40" bgcolor="#eeeeee" class="text" scope=col>Saldo
          </th> </tr>
          </thead>'}">

          <MvWHILE EXPR="{NOT ctac.d.eof}">

          <MvEVAL EXPR="{' <MvIF EXPR="{cambio EQ 0}">
          <MvASSIGN NAME="xcolor" VALUE="#bcbcbc">
          <MvASSIGN NAME="cambio" VALUE=1>
          <MvElse>
          <MvASSIGN NAME="xcolor" VALUE="#eeeeee">
          <MvASSIGN NAME="cambio" VALUE=0>
          </MvIF><tr>
          <td class="text" bgcolor="&[xcolor]" width="10" align="center"
          valign="center">&[ctac.d.OS] </td>
          <td class="text" bgcolor="&[xcolor]" width="35" align="center"
          valign="center">01/01/2004</td>
          <td class="text" bgcolor="&[xcolor]" width="100" align="left"
          valign="center"> &[ctac.d.CONCEPTO]</td>

          <MvIF EXPR="{ctac.d.MODO EQ 'Debito'}">
          <td class="text" bgcolor="&[xcolor]" width="40" align="right"
          valign="center"> &[ctac.d.IMP]</td>
          <td bgcolor="&[xcolor]" width="40">  </td>
          <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
          <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
          </MvIF>
          '}">
          <MvEVAL EXPR="{'<MvIF EXPR="{ctac.d.MODO EQ 'Credito'}">'}">

          <MvEVAL EXPR="{'<td bgcolor="&[xcolor]" width="40">  </td>'}">
          <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
          align="right" valign="center"><FONT FACE="Verdana">
          &[ctac.d.IMP]</font></td>'}">
          <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
          &[ctac.d.IMP]}">'}">
          <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo +
          &[ctac.d.IMP] }">'}">
          <MvEVAL EXPR="{'</MvIF>'}">
          <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
          align="right" valign="center"><FONT FACE="Verdana"> &[xsaldo]</font>
          </td>'}">



          <MvSKIP>



          </MvWHILE>
          <MvEVAL EXPR="{'</tbody></table>'}">

          </MvSMTP>
          <MIVA STANDARDOUTPUTLEVEL="html,text">


          thank's guys



          > Hi Scot and Roberto,
          >
          > This may NOT be the case, but Roberto may be looking into the "value" of
          > the
          > "value" of variable 'ctac.d.IMP', in which case a
          > miva_variable_value(ctac.d.IMP) may do better than the macro version
          > &[ctac.d.IMP] ...
          >
          > But the first thing that I would check Roberto... are you sure that your
          > databases are "open" in the SMTP process?
          >
          > I apologize for hitting this and running, but I've got to bolt from the
          > office and didn't really have time to test my theories; I hope to NOT
          > mislead anyone if I haven't thought this through enough...
          >
          > Best regards,
          >
          > Bob
          >
          >
          >
          >
          >> -----Original Message-----
          >> From: Scot Ranney [mailto:[email protected]] Sent: Thursday, January
          >> 29, 2004 9:08 PM
          >> To: Roberto Buccino
          >> Cc: [email protected]
          >> Subject: Re: [meu] procesing into smtp
          >>
          >>
          >> A couple of questions. Why are you doing:
          >>
          >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
          >>
          >> instead of:
          >>
          >> <MvASSIGN NAME= "l.xting" VALUE="{xting + ctac.d.IMP}">?
          >>
          >> You don't need to use a macro in there.
          >>
          >> Within your SMTP, you've put a lot more stuff than you need. Try doing
          >> your MvASSIGN's this way:
          >>
          >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + ctac.d.IMP}">
          >>
          >> Regards,
          >>
          >> Scot Ranney
          >> <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>
          >>
          >>
          >> ===============================
          >> Original Message:
          >> ===============================
          >> Thursday, January 29, 2004, 5:41:12 PM, you wrote:
          >>
          >> Hello boys
          >>
          >>
          >> I have a trouble with a minus sign(-) when I try to aplication the same
          >> script rutine in a website or in a smtp process.
          >>
          >>
          >> In a website these procedure work well
          >>
          >> if the IMP value is one debit
          >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
          >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
          >>
          >> if the IMP value is one credit
          >>
          >>
          >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + &[ctac.d.IMP]}">
          >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP] }">
          >>
          >> the debit acumulated in xsaldo are a negative number if not have a
          >> credit.
          >>
          >> In a smtp proceess the same rutine xsaldo are 0 (zero) not acumulate,
          >> and not decrese
          >>
          >>
          >> if the IMP value is one debit
          >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
          >> &[ctac.d.IMP]}">'}">
          >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo -
          >> &[ctac.d.IMP] }">'}">
          >>
          >>
          >> if the IMP value is one credit
          >>
          >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
          >> &[ctac.d.IMP]}">'}">
          >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo +
          >> &[ctac.d.IMP] }">'}">
          >>
          >> I suppose the problem are in a variable definiton (or aplication) when I
          >> try to accumulate or decrese saldo
          >>
          >>
          >> thank's of advance
          >>
          >> Roberto
          >>
          >> _________________________________
          >> Alfa Centauro Custom Systems
          >> Copahue 3480 - San Carlos de Bariloche
          >> Rio Negro - Patagonia Argentina
          >>
          >>

          Comment


            #6
            procesing into smtp



            Roberto,

            I'm not in expert in HTML formatted MvSMTP function calls, but given =
            the
            fact that the said that it works in plain text mode but NOT HTML mode, =
            and
            looking at just the HTML code that you sent, I would first be =
            suspicious of
            putting an <MvIF>... inside of an <MvEVAL> function -- I'm not sure =
            that
            would work at all and maybe that's your problem. If there is anyway =
            that you
            can separate your "logic" (MvIF's, etc) from the SMTP HTML MvEVALs =
            things
            might work better. Again, I'm not an expert on that and I'm not testing =
            my
            comments, just trying to give you some guidance.

            On the other hand though, I think that I'm getting a little better at
            reading "SpanEnglish", si?! <g> ;)

            Good luck and HTH,

            Bob





            > -----Original Message-----
            > From: Roberto Buccino [mailto:[email protected]]=20
            > Sent: Friday, January 30, 2004 6:01 AM
            > To: [email protected]
            > Subject: Re: [meu] procesing into smtp
            >=20
            >=20
            > Hi Scot, Robert
            >=20
            >=20
            > Y try that you said bob and not acumulate :( either.
            >=20
            > look this, if I process smtp in a text plain format work=20
            > well! but if I do=20
            > in HTML format not!
            >=20
            > The database are open well, other field are ok
            >=20
            >=20
            > in html format I do this below but I not sure if the MvIf=20
            > structure works
            >=20
            >=20
            >=20
            >=20
            > <MvASSIGN NAME=3D"l.cambio" VALUE=3D0>
            > <MvASSIGN NAME=3D "l.xting" VALUE=3D0>
            > <MvASSIGN NAME=3D "l.xtegr" VALUE=3D0>
            > <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D0>
            >=20
            > <MIVA STANDARDOUTPUTLEVEL=3D"">
            > <MvASSIGN NAME=3D"l.cr" VALUE=3D"{asciichar(13) $ asciichar(10)}">
            > <MvSMTP TO=3D"[email protected]" =20
            > FROM=3D"[email protected]" SUBJECT=3D"Resumen de=20
            > cuenta corriente"=20
            > MAILHOST=3D"192.168.1.1">
            > <MvEVAL EXPR=3D"{'MIME-Version: 1.0' $ l.cr}">
            > <MvEVAL EXPR=3D"{'Content-Type: text/html; charset=3Diso-8859-1' $ =
            l.cr}">
            > <MvEVAL EXPR=3D"{'Content-Transfer-Encoding: 8bit' $ l.cr $ l.cr}">
            > <MvEVAL EXPR=3D"{'Estimados Sres: &[ctac.d.CUENTA]
            '}">
            > <MvEVAL EXPR=3D"{'Le hacemos llegar por este medio el resumen=20
            > de su cuenta=20
            > corriente correspondiente al mes en curso
            recordandole que=20
            > personal de=20
            > nuestra empresa pasara entre los dias 5 y 10 a cobrar la factura=20
            > correspondiente.


            Atte, departamento de atencion=20
            > al cliente.=20
            >
            Angostura Express'}">
            > <MvEVAL EXPR=3D"{'

            RESUMEN DE CUENTA:

            '}">
            >=20
            > <MvEVAL EXPR=3D"{'
            > <table width=3D"740" border=3D"0" align=3D"center">
            > <thead> <tr>
            > <th width=3D"10" bgcolor=3D"#eeeeee" class=3D"text"=20
            > scope=3Dcol>Referencia </th>
            > <th width=3D"35" bgcolor=3D"#eeeeee"=20
            > class=3D"text" scope=3Dcol>Fecha=20
            > </th>
            > <th width=3D"100" bgcolor=3D"#eeeeee"=20
            > class=3D"text" scope=3Dcol>Concepto=20
            >
            </th>
            > <th width=3D"40" bgcolor=3D"#eeeeee" class=3D"text"=20
            > scope=3Dcol>Debito </th>
            > <th width=3D"40" bgcolor=3D"#eeeeee" class=3D"text"=20
            > scope=3Dcol>Credito </th>
            > <th width=3D"40" bgcolor=3D"#eeeeee"=20
            > class=3D"text" scope=3Dcol>Saldo=20
            > </th> </tr>
            > </thead>'}">
            >=20
            > <MvWHILE EXPR=3D"{NOT ctac.d.eof}">
            >=20
            > <MvEVAL EXPR=3D"{' <MvIF EXPR=3D"{cambio EQ 0}">
            > <MvASSIGN NAME=3D"xcolor" VALUE=3D"#bcbcbc">
            > <MvASSIGN NAME=3D"cambio" VALUE=3D1>
            > <MvElse>
            > <MvASSIGN NAME=3D"xcolor" VALUE=3D"#eeeeee">
            > <MvASSIGN NAME=3D"cambio" VALUE=3D0>
            > </MvIF><tr>
            > <td class=3D"text" bgcolor=3D"&[xcolor]" width=3D"10" =
            align=3D"center"=20
            > valign=3D"center">&[ctac.d.OS] </td>
            > <td class=3D"text" bgcolor=3D"&[xcolor]" width=3D"35" =
            align=3D"center"=20
            > valign=3D"center">01/01/2004</td>
            > <td class=3D"text" bgcolor=3D"&[xcolor]" width=3D"100" =
            align=3D"left"=20
            > valign=3D"center"> &[ctac.d.CONCEPTO]</td>
            >=20
            > <MvIF EXPR=3D"{ctac.d.MODO EQ 'Debito'}">
            > <td class=3D"text" bgcolor=3D"&[xcolor]" width=3D"40" =
            align=3D"right"=20
            > valign=3D"center"> &[ctac.d.IMP]</td>
            > <td bgcolor=3D"&[xcolor]" width=3D"40">  </td>
            > <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + =
            &[ctac.d.IMP]}">
            > <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo - &[ctac.d.IMP] =
            }">
            > </MvIF>
            > '}">
            > <MvEVAL EXPR=3D"{'<MvIF EXPR=3D"{ctac.d.MODO EQ 'Credito'}">'}">
            >=20
            > <MvEVAL EXPR=3D"{'<td bgcolor=3D"&[xcolor]" width=3D"40"> =20
            > </td>'}">
            > <MvEVAL EXPR=3D"{'<td class=3D"text" bgcolor=3D"&[xcolor]" =
            width=3D"40"=20
            > align=3D"right" valign=3D"center"><FONT FACE=3D"Verdana">=20
            > &[ctac.d.IMP]</font></td>'}">
            > <MvEVAL EXPR=3D"{' <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr +=20
            > &[ctac.d.IMP]}">'}">
            > <MvEVAL EXPR=3D"{'<MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo =
            +=20
            > &[ctac.d.IMP] }">'}">
            > <MvEVAL EXPR=3D"{'</MvIF>'}">
            > <MvEVAL EXPR=3D"{'<td class=3D"text" bgcolor=3D"&[xcolor]" =
            width=3D"40"=20
            > align=3D"right" valign=3D"center"><FONT FACE=3D"Verdana"> =
            &[xsaldo]</font>=20
            > </td>'}">
            >=20
            >=20
            >=20
            > <MvSKIP>
            >=20
            >=20
            >=20
            > </MvWHILE>
            > <MvEVAL EXPR=3D"{'</tbody></table>'}">
            >=20
            > </MvSMTP>
            > <MIVA STANDARDOUTPUTLEVEL=3D"html,text">
            >=20
            >=20
            > thank's guys
            >=20
            >=20
            >=20
            > > Hi Scot and Roberto,
            > >
            > > This may NOT be the case, but Roberto may be looking into=20
            > the "value" of=20
            > > the
            > > "value" of variable 'ctac.d.IMP', in which case a
            > > miva_variable_value(ctac.d.IMP) may do better than the=20
            > macro version=20
            > > &[ctac.d.IMP] ...
            > >
            > > But the first thing that I would check Roberto... are you=20
            > sure that your
            > > databases are "open" in the SMTP process?
            > >
            > > I apologize for hitting this and running, but I've got to=20
            > bolt from the
            > > office and didn't really have time to test my theories; I=20
            > hope to NOT
            > > mislead anyone if I haven't thought this through enough...
            > >
            > > Best regards,
            > >
            > > Bob
            > >
            > >
            > >
            > >
            > >> -----Original Message-----
            > >> From: Scot Ranney [mailto:[email protected]] Sent:=20
            > Thursday, January=20
            > >> 29, 2004 9:08 PM
            > >> To: Roberto Buccino
            > >> Cc: [email protected]
            > >> Subject: Re: [meu] procesing into smtp
            > >>
            > >>
            > >> A couple of questions. Why are you doing:
            > >>
            > >> <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + &[ctac.d.IMP]}">
            > >>
            > >> instead of:
            > >>
            > >> <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + ctac.d.IMP}">?
            > >>
            > >> You don't need to use a macro in there.
            > >>
            > >> Within your SMTP, you've put a lot more stuff than you=20
            > need. Try doing
            > >> your MvASSIGN's this way:
            > >>
            > >> <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr + ctac.d.IMP}">
            > >>
            > >> Regards,
            > >>
            > >> Scot Ranney
            > >> <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>
            > >>
            > >>
            > >> =
            =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=
            =3D=3D=3D=3D=3D=3D=3D
            > >> Original Message:
            > >> =
            =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=
            =3D=3D=3D=3D=3D=3D=3D
            > >> Thursday, January 29, 2004, 5:41:12 PM, you wrote:
            > >>
            > >> Hello boys=09
            > >>
            > >>
            > >> I have a trouble with a minus sign(-) when I try to=20
            > aplication the same=20
            > >> script rutine in a website or in a smtp process.
            > >>
            > >>
            > >> In a website these procedure work well
            > >>
            > >> if the IMP value is one debit
            > >> <MvASSIGN NAME=3D "l.xting" VALUE=3D"{xting + &[ctac.d.IMP]}">
            > >> <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo - &[ctac.d.IMP] }">
            > >>
            > >> if the IMP value is one credit
            > >>
            > >>
            > >> <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr + &[ctac.d.IMP]}">
            > >> <MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo + &[ctac.d.IMP] }">
            > >>
            > >> the debit acumulated in xsaldo are a negative number if not have a =

            > >> credit.
            > >>
            > >> In a smtp proceess the same rutine xsaldo are 0 (zero) not=20
            > acumulate,=20
            > >> and not decrese
            > >>
            > >>
            > >> if the IMP value is one debit
            > >> <MvEVAL EXPR=3D"{' <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr +=20
            > >> &[ctac.d.IMP]}">'}">
            > >> <MvEVAL EXPR=3D"{'<MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo -=20
            > >> &[ctac.d.IMP] }">'}">
            > >>
            > >>
            > >> if the IMP value is one credit
            > >>
            > >> <MvEVAL EXPR=3D"{' <MvASSIGN NAME=3D "l.xtegr" VALUE=3D"{xtegr +=20
            > >> &[ctac.d.IMP]}">'}">
            > >> <MvEVAL EXPR=3D"{'<MvASSIGN NAME=3D "l.xsaldo" VALUE=3D"{xsaldo +=20
            > >> &[ctac.d.IMP] }">'}">
            > >>
            > >> I suppose the problem are in a variable definiton (or=20
            > aplication) when I=20
            > >> try to accumulate or decrese saldo
            > >>
            > >>
            > >> thank's of advance
            > >>
            > >> Roberto
            > >>
            > >> _________________________________
            > >> Alfa Centauro Custom Systems
            > >> Copahue 3480 - San Carlos de Bariloche
            > >> Rio Negro - Patagonia Argentina
            > >>
            > >>

            Comment


              #7
              Array Related Bug?




              I get no extra (apparent) dimensions by running your exact script on Empresa
              3.9602 / Apache:

              number_stack: 4,9,13,20
              miva_array_max: 4
              array position 4 tested
              number_stack: 4,9,13,20
              miva_array_max: 4
              array position 5 tested
              number_stack: 4,9,13,20
              miva_array_max: 4
              array position 10 tested
              number_stack: 4,9,13,20
              miva_array_max: 4

              See here: http://test.webnician.com/arrays2.mv


              - - - lance turner ([email protected]) - - -

              > number_stack: 4,9,13,20
              > miva_array_max: 4
              > array position 4 tested
              > number_stack: 4,9,13,20
              > miva_array_max: 4
              > array position 5 tested
              > number_stack: 4,9,13,20,
              > miva_array_max: 5
              > array position 10 tested
              > number_stack: 4,9,13,20,,
              > miva_array_max: 10


              Comment


                #8
                Re: Array Related Bug?



                Some more clarification.

                The "bug/problem/feature" is not occurring when running an uncompiled Miva script with Empresa (v3.9602). It is occurring when running a compiled script with the VM (v4.10).

                At 9:44 PM -0500 1/29/04, lance turner wrote:
                >When a non-existent array position is tested in a conditional expression, the position is added to the array.
                >
                >See test script and results included below.
                >
                >Should this be occurring? Is it a bug?
                >
                >If so, is it a known bug?
                >
                >
                >Test Script:
                >
                ><MvASSIGN NAME = "l.number_stack" INDEX = "1" VALUE = "4">
                ><MvASSIGN NAME = "l.number_stack" INDEX = "2" VALUE = "9">
                ><MvASSIGN NAME = "l.number_stack" INDEX = "3" VALUE = "13">
                ><MvASSIGN NAME = "l.number_stack" INDEX = "4" VALUE = "20">
                >
                >number_stack: <MvEVAL EXPR="{ l.number_stack }">

                >miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">

                >
                ><MvASSIGN NAME = "l.a_number" VALUE = "20">
                >
                >array position 4 tested

                ><MvIF EXPR = "{ l.a_number EQ l.number_stack[4] }">
                >
                ></MvIF>
                >
                >number_stack: <MvEVAL EXPR="{ l.number_stack }">

                >miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">

                >
                >array position 5 tested

                ><MvIF EXPR = "{ l.a_number EQ l.number_stack[5] }">
                >
                ></MvIF>
                >
                >number_stack: <MvEVAL EXPR="{ l.number_stack }">

                >miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">

                >
                >array position 10 tested

                ><MvIF EXPR = "{ l.a_number EQ l.number_stack[10] }">
                >
                ></MvIF>
                >
                >number_stack: <MvEVAL EXPR="{ l.number_stack }">

                >miva_array_max: <MvEVAL EXPR="{ miva_array_max(l.number_stack) }">

                >
                >
                >Results:
                >
                >number_stack: 4,9,13,20
                >miva_array_max: 4
                >array position 4 tested
                >number_stack: 4,9,13,20
                >miva_array_max: 4
                >array position 5 tested
                >number_stack: 4,9,13,20,
                >miva_array_max: 5
                >array position 10 tested
                >number_stack: 4,9,13,20,,
                >miva_array_max: 10
                >
                >
                >lance turner
                >
                >latu.net
                >web design & programming
                ><A HREF ="http://www.latu.net">http://www.latu.net</A>
                >
                >Winter Park, FL
                >407 644-4492
                >[email protected]


                Comment


                  #9
                  procesing into smtp




                  Hi Bob

                  In several day I continue with the rutine, Now I have work in other script.

                  I try the script without MviF and not work the acumulator xsaldo.

                  IVO someone idea?

                  ;o)
                  Roberto


                  > Roberto,
                  >
                  > I'm not in expert in HTML formatted MvSMTP function calls, but given the
                  > fact that the said that it works in plain text mode but NOT HTML mode,
                  > and
                  > looking at just the HTML code that you sent, I would first be suspicious
                  > of
                  > putting an <MvIF>... inside of an <MvEVAL> function -- I'm not sure that
                  > would work at all and maybe that's your problem. If there is anyway that
                  > you
                  > can separate your "logic" (MvIF's, etc) from the SMTP HTML MvEVALs things
                  > might work better. Again, I'm not an expert on that and I'm not testing
                  > my
                  > comments, just trying to give you some guidance.
                  >
                  > On the other hand though, I think that I'm getting a little better at
                  > reading "SpanEnglish", si?! <g> ;)
                  >
                  > Good luck and HTH,
                  >
                  > Bob
                  >
                  >
                  >
                  >
                  >
                  >> -----Original Message-----
                  >> From: Roberto Buccino [mailto:[email protected]] Sent: Friday,
                  >> January 30, 2004 6:01 AM
                  >> To: [email protected]
                  >> Subject: Re: [meu] procesing into smtp
                  >>
                  >>
                  >> Hi Scot, Robert
                  >>
                  >>
                  >> Y try that you said bob and not acumulate :( either.
                  >>
                  >> look this, if I process smtp in a text plain format work well! but if I
                  >> do in HTML format not!
                  >>
                  >> The database are open well, other field are ok
                  >>
                  >>
                  >> in html format I do this below but I not sure if the MvIf structure
                  >> works
                  >>
                  >>
                  >>
                  >>
                  >> <MvASSIGN NAME="l.cambio" VALUE=0>
                  >> <MvASSIGN NAME= "l.xting" VALUE=0>
                  >> <MvASSIGN NAME= "l.xtegr" VALUE=0>
                  >> <MvASSIGN NAME= "l.xsaldo" VALUE=0>
                  >>
                  >> <MIVA STANDARDOUTPUTLEVEL="">
                  >> <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
                  >> <MvSMTP TO="[email protected]"
                  >> FROM="[email protected]" SUBJECT="Resumen de cuenta
                  >> corriente" MAILHOST="192.168.1.1">
                  >> <MvEVAL EXPR="{'MIME-Version: 1.0' $ l.cr}">
                  >> <MvEVAL EXPR="{'Content-Type: text/html; charset=iso-8859-1' $ l.cr}">
                  >> <MvEVAL EXPR="{'Content-Transfer-Encoding: 8bit' $ l.cr $ l.cr}">
                  >> <MvEVAL EXPR="{'Estimados Sres: &[ctac.d.CUENTA]
                  '}">
                  >> <MvEVAL EXPR="{'Le hacemos llegar por este medio el resumen de su cuenta
                  >> corriente correspondiente al mes en curso
                  recordandole que personal
                  >> de nuestra empresa pasara entre los dias 5 y 10 a cobrar la factura
                  >> correspondiente.


                  Atte, departamento de atencion al cliente.
                  >>
                  Angostura Express'}">
                  >> <MvEVAL EXPR="{'

                  RESUMEN DE CUENTA:

                  '}">
                  >>
                  >> <MvEVAL EXPR="{'
                  >> <table width="740" border="0" align="center">
                  >> <thead> <tr>
                  >> <th width="10" bgcolor="#eeeeee" class="text"
                  >> scope=col>Referencia </th>
                  >> <th width="35" bgcolor="#eeeeee" class="text"
                  >> scope=col>Fecha </th>
                  >> <th width="100" bgcolor="#eeeeee" class="text"
                  >> scope=col>Concepto </th>
                  >> <th width="40" bgcolor="#eeeeee" class="text"
                  >> scope=col>Debito </th>
                  >> <th width="40" bgcolor="#eeeeee" class="text"
                  >> scope=col>Credito </th>
                  >> <th width="40" bgcolor="#eeeeee" class="text"
                  >> scope=col>Saldo </th> </tr>
                  >> </thead>'}">
                  >>
                  >> <MvWHILE EXPR="{NOT ctac.d.eof}">
                  >>
                  >> <MvEVAL EXPR="{' <MvIF EXPR="{cambio EQ 0}">
                  >> <MvASSIGN NAME="xcolor" VALUE="#bcbcbc">
                  >> <MvASSIGN NAME="cambio" VALUE=1>
                  >> <MvElse>
                  >> <MvASSIGN NAME="xcolor" VALUE="#eeeeee">
                  >> <MvASSIGN NAME="cambio" VALUE=0>
                  >> </MvIF><tr>
                  >> <td class="text" bgcolor="&[xcolor]" width="10" align="center"
                  >> valign="center">&[ctac.d.OS] </td>
                  >> <td class="text" bgcolor="&[xcolor]" width="35" align="center"
                  >> valign="center">01/01/2004</td>
                  >> <td class="text" bgcolor="&[xcolor]" width="100" align="left"
                  >> valign="center"> &[ctac.d.CONCEPTO]</td>
                  >>
                  >> <MvIF EXPR="{ctac.d.MODO EQ 'Debito'}">
                  >> <td class="text" bgcolor="&[xcolor]" width="40" align="right"
                  >> valign="center"> &[ctac.d.IMP]</td>
                  >> <td bgcolor="&[xcolor]" width="40">  </td>
                  >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                  >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
                  >> </MvIF>
                  >> '}">
                  >> <MvEVAL EXPR="{'<MvIF EXPR="{ctac.d.MODO EQ 'Credito'}">'}">
                  >>
                  >> <MvEVAL EXPR="{'<td bgcolor="&[xcolor]" width="40">  </td>'}">
                  >> <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
                  >> align="right" valign="center"><FONT FACE="Verdana">
                  >> &[ctac.d.IMP]</font></td>'}">
                  >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
                  >> &[ctac.d.IMP]}">'}">
                  >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo +
                  >> &[ctac.d.IMP] }">'}">
                  >> <MvEVAL EXPR="{'</MvIF>'}">
                  >> <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
                  >> align="right" valign="center"><FONT FACE="Verdana"> &[xsaldo]</font>
                  >> </td>'}">
                  >>
                  >>
                  >>
                  >> <MvSKIP>
                  >>
                  >>
                  >>
                  >> </MvWHILE>
                  >> <MvEVAL EXPR="{'</tbody></table>'}">
                  >>
                  >> </MvSMTP>
                  >> <MIVA STANDARDOUTPUTLEVEL="html,text">
                  >>
                  >>
                  >> thank's guys
                  >>
                  >>
                  >>
                  >> > Hi Scot and Roberto,
                  >> >
                  >> > This may NOT be the case, but Roberto may be looking into the "value"
                  >> of > the
                  >> > "value" of variable 'ctac.d.IMP', in which case a
                  >> > miva_variable_value(ctac.d.IMP) may do better than the macro version >
                  >> &[ctac.d.IMP] ...
                  >> >
                  >> > But the first thing that I would check Roberto... are you sure that
                  >> your
                  >> > databases are "open" in the SMTP process?
                  >> >
                  >> > I apologize for hitting this and running, but I've got to bolt from
                  >> the
                  >> > office and didn't really have time to test my theories; I hope to NOT
                  >> > mislead anyone if I haven't thought this through enough...
                  >> >
                  >> > Best regards,
                  >> >
                  >> > Bob
                  >> >
                  >> >
                  >> >
                  >> >
                  >> >> -----Original Message-----
                  >> >> From: Scot Ranney [mailto:[email protected]] Sent: Thursday,
                  >> January >> 29, 2004 9:08 PM
                  >> >> To: Roberto Buccino
                  >> >> Cc: [email protected]
                  >> >> Subject: Re: [meu] procesing into smtp
                  >> >>
                  >> >>
                  >> >> A couple of questions. Why are you doing:
                  >> >>
                  >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                  >> >>
                  >> >> instead of:
                  >> >>
                  >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + ctac.d.IMP}">?
                  >> >>
                  >> >> You don't need to use a macro in there.
                  >> >>
                  >> >> Within your SMTP, you've put a lot more stuff than you need. Try
                  >> doing
                  >> >> your MvASSIGN's this way:
                  >> >>
                  >> >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + ctac.d.IMP}">
                  >> >>
                  >> >> Regards,
                  >> >>
                  >> >> Scot Ranney
                  >> >> <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>
                  >> >>
                  >> >>
                  >> >> ===============================
                  >> >> Original Message:
                  >> >> ===============================
                  >> >> Thursday, January 29, 2004, 5:41:12 PM, you wrote:
                  >> >>
                  >> >> Hello boys
                  >> >>
                  >> >>
                  >> >> I have a trouble with a minus sign(-) when I try to aplication the
                  >> same >> script rutine in a website or in a smtp process.
                  >> >>
                  >> >>
                  >> >> In a website these procedure work well
                  >> >>
                  >> >> if the IMP value is one debit
                  >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                  >> >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
                  >> >>
                  >> >> if the IMP value is one credit
                  >> >>
                  >> >>
                  >> >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + &[ctac.d.IMP]}">
                  >> >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP] }">
                  >> >>
                  >> >> the debit acumulated in xsaldo are a negative number if not have a >>
                  >> credit.
                  >> >>
                  >> >> In a smtp proceess the same rutine xsaldo are 0 (zero) not acumulate,
                  >> >> and not decrese
                  >> >>
                  >> >>
                  >> >> if the IMP value is one debit
                  >> >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + >>
                  >> &[ctac.d.IMP]}">'}">
                  >> >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - >>
                  >> &[ctac.d.IMP] }">'}">
                  >> >>
                  >> >>
                  >> >> if the IMP value is one credit
                  >> >>
                  >> >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + >>
                  >> &[ctac.d.IMP]}">'}">
                  >> >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + >>
                  >> &[ctac.d.IMP] }">'}">
                  >> >>
                  >> >> I suppose the problem are in a variable definiton (or aplication)
                  >> when I >> try to accumulate or decrese saldo
                  >> >>
                  >> >>
                  >> >> thank's of advance
                  >> >>
                  >> >> Roberto
                  >> >>
                  >> >> _________________________________
                  >> >> Alfa Centauro Custom Systems
                  >> >> Copahue 3480 - San Carlos de Bariloche
                  >> >> Rio Negro - Patagonia Argentina
                  >> >>
                  >> >>

                  Comment


                    #10
                    procesing into smtp



                    Hey Bob!

                    You had right

                    > putting an <MvIF>... inside of an <MvEVAL> function -- I'm not sure that
                    > would work at all and maybe that's your problem. If there is anyway that
                    > you
                    > can separate your "logic" (MvIF's, etc) from the SMTP HTML MvEVALs things
                    > might work better. Again, I'm not an expert on that and I'm not testing
                    > my
                    > comments, just trying to give you some guidance.

                    I separate the MVIF and now works well

                    Thank at all boys

                    ;o
                    Roberto

                    PS in SpanEnglish ;o)


                    > Roberto,
                    >
                    > I'm not in expert in HTML formatted MvSMTP function calls, but given the
                    > fact that the said that it works in plain text mode but NOT HTML mode,
                    > and
                    > looking at just the HTML code that you sent, I would first be suspicious
                    > of
                    > putting an <MvIF>... inside of an <MvEVAL> function -- I'm not sure that
                    > would work at all and maybe that's your problem. If there is anyway that
                    > you
                    > can separate your "logic" (MvIF's, etc) from the SMTP HTML MvEVALs things
                    > might work better. Again, I'm not an expert on that and I'm not testing
                    > my
                    > comments, just trying to give you some guidance.
                    >
                    > On the other hand though, I think that I'm getting a little better at
                    > reading "SpanEnglish", si?! <g> ;)
                    >
                    > Good luck and HTH,
                    >
                    > Bob
                    >
                    >
                    >
                    >
                    >
                    >> -----Original Message-----
                    >> From: Roberto Buccino [mailto:[email protected]] Sent: Friday,
                    >> January 30, 2004 6:01 AM
                    >> To: [email protected]
                    >> Subject: Re: [meu] procesing into smtp
                    >>
                    >>
                    >> Hi Scot, Robert
                    >>
                    >>
                    >> Y try that you said bob and not acumulate :( either.
                    >>
                    >> look this, if I process smtp in a text plain format work well! but if I
                    >> do in HTML format not!
                    >>
                    >> The database are open well, other field are ok
                    >>
                    >>
                    >> in html format I do this below but I not sure if the MvIf structure
                    >> works
                    >>
                    >>
                    >>
                    >>
                    >> <MvASSIGN NAME="l.cambio" VALUE=0>
                    >> <MvASSIGN NAME= "l.xting" VALUE=0>
                    >> <MvASSIGN NAME= "l.xtegr" VALUE=0>
                    >> <MvASSIGN NAME= "l.xsaldo" VALUE=0>
                    >>
                    >> <MIVA STANDARDOUTPUTLEVEL="">
                    >> <MvASSIGN NAME="l.cr" VALUE="{asciichar(13) $ asciichar(10)}">
                    >> <MvSMTP TO="[email protected]"
                    >> FROM="[email protected]" SUBJECT="Resumen de cuenta
                    >> corriente" MAILHOST="192.168.1.1">
                    >> <MvEVAL EXPR="{'MIME-Version: 1.0' $ l.cr}">
                    >> <MvEVAL EXPR="{'Content-Type: text/html; charset=iso-8859-1' $ l.cr}">
                    >> <MvEVAL EXPR="{'Content-Transfer-Encoding: 8bit' $ l.cr $ l.cr}">
                    >> <MvEVAL EXPR="{'Estimados Sres: &[ctac.d.CUENTA]
                    '}">
                    >> <MvEVAL EXPR="{'Le hacemos llegar por este medio el resumen de su cuenta
                    >> corriente correspondiente al mes en curso
                    recordandole que personal
                    >> de nuestra empresa pasara entre los dias 5 y 10 a cobrar la factura
                    >> correspondiente.


                    Atte, departamento de atencion al cliente.
                    >>
                    Angostura Express'}">
                    >> <MvEVAL EXPR="{'

                    RESUMEN DE CUENTA:

                    '}">
                    >>
                    >> <MvEVAL EXPR="{'
                    >> <table width="740" border="0" align="center">
                    >> <thead> <tr>
                    >> <th width="10" bgcolor="#eeeeee" class="text"
                    >> scope=col>Referencia </th>
                    >> <th width="35" bgcolor="#eeeeee" class="text"
                    >> scope=col>Fecha </th>
                    >> <th width="100" bgcolor="#eeeeee" class="text"
                    >> scope=col>Concepto </th>
                    >> <th width="40" bgcolor="#eeeeee" class="text"
                    >> scope=col>Debito </th>
                    >> <th width="40" bgcolor="#eeeeee" class="text"
                    >> scope=col>Credito </th>
                    >> <th width="40" bgcolor="#eeeeee" class="text"
                    >> scope=col>Saldo </th> </tr>
                    >> </thead>'}">
                    >>
                    >> <MvWHILE EXPR="{NOT ctac.d.eof}">
                    >>
                    >> <MvEVAL EXPR="{' <MvIF EXPR="{cambio EQ 0}">
                    >> <MvASSIGN NAME="xcolor" VALUE="#bcbcbc">
                    >> <MvASSIGN NAME="cambio" VALUE=1>
                    >> <MvElse>
                    >> <MvASSIGN NAME="xcolor" VALUE="#eeeeee">
                    >> <MvASSIGN NAME="cambio" VALUE=0>
                    >> </MvIF><tr>
                    >> <td class="text" bgcolor="&[xcolor]" width="10" align="center"
                    >> valign="center">&[ctac.d.OS] </td>
                    >> <td class="text" bgcolor="&[xcolor]" width="35" align="center"
                    >> valign="center">01/01/2004</td>
                    >> <td class="text" bgcolor="&[xcolor]" width="100" align="left"
                    >> valign="center"> &[ctac.d.CONCEPTO]</td>
                    >>
                    >> <MvIF EXPR="{ctac.d.MODO EQ 'Debito'}">
                    >> <td class="text" bgcolor="&[xcolor]" width="40" align="right"
                    >> valign="center"> &[ctac.d.IMP]</td>
                    >> <td bgcolor="&[xcolor]" width="40">  </td>
                    >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                    >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
                    >> </MvIF>
                    >> '}">
                    >> <MvEVAL EXPR="{'<MvIF EXPR="{ctac.d.MODO EQ 'Credito'}">'}">
                    >>
                    >> <MvEVAL EXPR="{'<td bgcolor="&[xcolor]" width="40">  </td>'}">
                    >> <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
                    >> align="right" valign="center"><FONT FACE="Verdana">
                    >> &[ctac.d.IMP]</font></td>'}">
                    >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr +
                    >> &[ctac.d.IMP]}">'}">
                    >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo +
                    >> &[ctac.d.IMP] }">'}">
                    >> <MvEVAL EXPR="{'</MvIF>'}">
                    >> <MvEVAL EXPR="{'<td class="text" bgcolor="&[xcolor]" width="40"
                    >> align="right" valign="center"><FONT FACE="Verdana"> &[xsaldo]</font>
                    >> </td>'}">
                    >>
                    >>
                    >>
                    >> <MvSKIP>
                    >>
                    >>
                    >>
                    >> </MvWHILE>
                    >> <MvEVAL EXPR="{'</tbody></table>'}">
                    >>
                    >> </MvSMTP>
                    >> <MIVA STANDARDOUTPUTLEVEL="html,text">
                    >>
                    >>
                    >> thank's guys
                    >>
                    >>
                    >>
                    >> > Hi Scot and Roberto,
                    >> >
                    >> > This may NOT be the case, but Roberto may be looking into the "value"
                    >> of > the
                    >> > "value" of variable 'ctac.d.IMP', in which case a
                    >> > miva_variable_value(ctac.d.IMP) may do better than the macro version >
                    >> &[ctac.d.IMP] ...
                    >> >
                    >> > But the first thing that I would check Roberto... are you sure that
                    >> your
                    >> > databases are "open" in the SMTP process?
                    >> >
                    >> > I apologize for hitting this and running, but I've got to bolt from
                    >> the
                    >> > office and didn't really have time to test my theories; I hope to NOT
                    >> > mislead anyone if I haven't thought this through enough...
                    >> >
                    >> > Best regards,
                    >> >
                    >> > Bob
                    >> >
                    >> >
                    >> >
                    >> >
                    >> >> -----Original Message-----
                    >> >> From: Scot Ranney [mailto:[email protected]] Sent: Thursday,
                    >> January >> 29, 2004 9:08 PM
                    >> >> To: Roberto Buccino
                    >> >> Cc: [email protected]
                    >> >> Subject: Re: [meu] procesing into smtp
                    >> >>
                    >> >>
                    >> >> A couple of questions. Why are you doing:
                    >> >>
                    >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                    >> >>
                    >> >> instead of:
                    >> >>
                    >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + ctac.d.IMP}">?
                    >> >>
                    >> >> You don't need to use a macro in there.
                    >> >>
                    >> >> Within your SMTP, you've put a lot more stuff than you need. Try
                    >> doing
                    >> >> your MvASSIGN's this way:
                    >> >>
                    >> >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + ctac.d.IMP}">
                    >> >>
                    >> >> Regards,
                    >> >>
                    >> >> Scot Ranney
                    >> >> <A HREF ="http://www.scotsscripts.com">http://www.scotsscripts.com</A>
                    >> >>
                    >> >>
                    >> >> ===============================
                    >> >> Original Message:
                    >> >> ===============================
                    >> >> Thursday, January 29, 2004, 5:41:12 PM, you wrote:
                    >> >>
                    >> >> Hello boys
                    >> >>
                    >> >>
                    >> >> I have a trouble with a minus sign(-) when I try to aplication the
                    >> same >> script rutine in a website or in a smtp process.
                    >> >>
                    >> >>
                    >> >> In a website these procedure work well
                    >> >>
                    >> >> if the IMP value is one debit
                    >> >> <MvASSIGN NAME= "l.xting" VALUE="{xting + &[ctac.d.IMP]}">
                    >> >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - &[ctac.d.IMP] }">
                    >> >>
                    >> >> if the IMP value is one credit
                    >> >>
                    >> >>
                    >> >> <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + &[ctac.d.IMP]}">
                    >> >> <MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + &[ctac.d.IMP] }">
                    >> >>
                    >> >> the debit acumulated in xsaldo are a negative number if not have a >>
                    >> credit.
                    >> >>
                    >> >> In a smtp proceess the same rutine xsaldo are 0 (zero) not acumulate,
                    >> >> and not decrese
                    >> >>
                    >> >>
                    >> >> if the IMP value is one debit
                    >> >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + >>
                    >> &[ctac.d.IMP]}">'}">
                    >> >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo - >>
                    >> &[ctac.d.IMP] }">'}">
                    >> >>
                    >> >>
                    >> >> if the IMP value is one credit
                    >> >>
                    >> >> <MvEVAL EXPR="{' <MvASSIGN NAME= "l.xtegr" VALUE="{xtegr + >>
                    >> &[ctac.d.IMP]}">'}">
                    >> >> <MvEVAL EXPR="{'<MvASSIGN NAME= "l.xsaldo" VALUE="{xsaldo + >>
                    >> &[ctac.d.IMP] }">'}">
                    >> >>
                    >> >> I suppose the problem are in a variable definiton (or aplication)
                    >> when I >> try to accumulate or decrese saldo
                    >> >>
                    >> >>
                    >> >> thank's of advance
                    >> >>
                    >> >> Roberto
                    >> >>
                    >> >> _________________________________
                    >> >> Alfa Centauro Custom Systems
                    >> >> Copahue 3480 - San Carlos de Bariloche
                    >> >> Rio Negro - Patagonia Argentina
                    >> >>
                    >> >>

                    Comment

                    Working...
                    X