[Zope] DTML newbie question on summation

2000-06-02 Thread Coleman, Bryan

I can't seem to add variables using let. I just get a concatination of the
integers. I am using ...



The days represent hours but are stored as integers in the database.

- Bryan Patrick Coleman
  Questcon Technologies
  (336)273-2428
  [EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] DTML newbie question on summation

2000-06-02 Thread Marcus Collins

Hi!

> -Original Message-
> From: Coleman, Bryan [mailto:[EMAIL PROTECTED]]
> Sent: 02 June 2000 15:20
> To: '[EMAIL PROTECTED]'
> Subject: [Zope] DTML newbie question on summation
> 
> 
> I can't seem to add variables using let. I just get a 
> concatination of the integers. I am using ...
> 
> 
> 
> The days represent hours but are stored as integers in the database.

While they're stored as integers, some of the database adaptors return
everything as strings. This would seem to be borne out by the concatenation.

Try: 



to explicitly convert your results to integers.

hth,

-- Marcus

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] DTML newbie question on summation

2000-06-02 Thread Peter Sabaini


try 

  
:
:The days represent hours but are stored as integers in the database.
:
:- Bryan Patrick Coleman
:  Questcon Technologies
:  (336)273-2428
:  [EMAIL PROTECTED]
:
:
:___
:Zope maillist  -  [EMAIL PROTECTED]
:http://lists.zope.org/mailman/listinfo/zope
:**   No cross posts or HTML encoding!  **
:(Related lists - 
: http://lists.zope.org/mailman/listinfo/zope-announce
: http://lists.zope.org/mailman/listinfo/zope-dev )
:

-- 

_
peter sabaini, mailto: [EMAIL PROTECTED]
-


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )