I need proof of this...

fernando.olmos at hpa.com.au fernando.olmos at hpa.com.au
Thu Sep 22 20:17:44 CDT 2005


So you're saying that if I have a field without a value on the left hand
side, the program will fail? But I thought all temporaries default to 0
or blank before they are used? This sounds familiar. Thanks
 
-----Original Message-----
From: mgo at columbus.rr.com [mailto:mgo at columbus.rr.com] 
Sent: Friday, September 23, 2005 11:15 AM
To: Fernando Olmos; powerh-l at lists.sowder.com
Subject: RE: I need proof of this...



Fernando,

Powerhouse must have a constant value or one field that contains a value
on the left side of the comparison operation. The right side may contain
equations or other values that can be derived and distilled into a value
for the purpose of the comparison.

Mike

 

 

-----Original Message-----
From: powerh-l-bounces+mgo=columbus.rr.com at lists.sowder.com
[mailto:powerh-l-bounces+mgo=columbus.rr.com at lists.sowder.com] On Behalf
Of fernando.olmos at hpa.com.au
Sent: Thursday, September 22, 2005 9:07 PM
To: powerh-l at lists.sowder.com
Subject: I need proof of this...

 

I cannot remember why I do it this way, but I was wondering if someone
out there may be able to help me remember. 

For some reason, I write my IF statements with the literal FIRST before
the item been tested ... 

i.e.:   if 0 = t_field1 ... 

Some people write it as ... 

        if t_field1 = 0 ... 

Now I would prefer to do it the 2nd way, but I believe there are some
cases in Powerhouse where it gets confused if you do it like in the 2nd
method. I think if you tried ...

        if index(T_field, "string") > 0 

it's not the same as ... 
        if 0 < index (t_field, "string") 

Now I know that sounds ridiculous, but I did come across problems with
this years ago, but I don't remember exactly what it was. The point now
is that I have got stuck into a habit with the 1st method mentioned
above.

Cheers 

Fernando Olmos 
M.I.S. 

HPA
Direct:  03 9217 5411
Mobile: 0410 382 857
Fax:     03 9217 5716 

 <file:///H:\Appdata\Microsoft\Signatures\www.hpa.com.au> www.hpa.com.au


 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sowder.com/pipermail/powerh-l/attachments/20050923/165bc88a/attachment.html


More information about the powerh-l mailing list