dbTalk Databases Forums  

How to use specific mathematic symbols in fields?

comp.databases.paradox comp.databases.paradox


Discuss How to use specific mathematic symbols in fields? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank Boelsen
 
Posts: n/a

Default How to use specific mathematic symbols in fields? - 01-04-2008 , 11:25 AM






Hello,

inside a Paradox 8 report 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



Reply With Quote
  #2  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM






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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #3  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #4  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #5  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #6  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #7  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #8  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 11:52 AM



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 (AT) online (DOT) de> schrieb im Newsbeitrag
news:fllq5f$u50$1 (AT) online (DOT) de...
Quote:
Hello,

inside a Paradox 8 report 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





Reply With Quote
  #9  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 01:34 PM



....
and I forgot:
string([STREETS.PQ1], 1, 1) by:
substr([STREETS.PQ1], 1, 1)

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________



Reply With Quote
  #10  
Old   
Egbert Babst
 
Posts: n/a

Default Re: How to use specific mathematic symbols in fields? - 01-04-2008 , 01:34 PM



....
and I forgot:
string([STREETS.PQ1], 1, 1) by:
substr([STREETS.PQ1], 1, 1)

Egbert

--
_______________________________
Babst, Institutionsberatung,
BabstSoft e.K.
Ludwigstr. 86
64546 Mörfelden-Walldorf
Tel: 06105 74974
Handelsregister:
Amtsgericht Darmstadt HRA 53360
www.BabstSoft.com
_______________________________



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.