Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Paradox > Re: How to use ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 1314 of 1411
Post > Topic >>

Re: How to use specific mathematic symbols in fields?

by "Egbert Babst" <EgbertBabst@[EMAIL PROTECTED] > Jan 4, 2008 at 06:52 PM

Frank,
In your formula:
0.8575 * sqrt((ansicode(string([STREETS.PQ1], 1, 1)) - ansicode("T"))^2) +
(value(string([STREETS.PQ1], 2, 2)) - value("06")) ^2 )

I would substitute ^2 by pow(2). "^" doesn't exist in OPAL IIRC.
And substitute "value" by the desired cast like smallInt, longInt, or 
number, e.g. number (.....)
Haven't tried it, but guess this might be the cause.

Egbert
-- 
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________
"Frank Boelsen" <boelsen@[EMAIL PROTECTED]
> schrieb im Newsbeitrag 
news:fllq5f$u50$1@[EMAIL PROTECTED]
> Hello,
>
> inside a Paradox 8 re****t I've created new calculated field, which shall

> contain following formula:
>
> 0.8575 * sqrt((ansicode(string([STREETS.PQ1], 1, 1)) - ansicode("T"))^2)
+ 
> (value(string([STREETS.PQ1], 2, 2)) - value("06")) ^2 )
>
> The story behind is: there exists a table (STREETS) with field "PQ1"
(e.g. 
> for entries: T06, R10, ...). The field (type "A") has a length of 3 
> characters. Now I want to convert the text string into 2 values (see 
> formula above).
>
> But Paradox doesn't accept the symbol ^ and neither "value". What can I 
> use instead?
>
> Thanks in advance.
>
> Frank
>
>
 




 4 Posts in Topic:
How to use specific mathematic symbols in fields?
"Frank Boelsen"  2008-01-04 18:25:16 
Re: How to use specific mathematic symbols in fields?
"Egbert Babst"   2008-01-04 18:52:14 
Re: How to use specific mathematic symbols in fields?
"Egbert Babst"   2008-01-04 20:34:14 
Re: How to use specific mathematic symbols in fields?
"Frank Boelsen"  2008-01-06 10:38:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 18:18:03 CDT 2008.