Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to use specific mathematic symbols in fields?

 
   Database Forums (Home) -> Paradox RSS
Next:  Oracle Jobs  
Author Message
Frank Boelsen

External


Since: Oct 10, 2006
Posts: 4



(Msg. 1) Posted: Fri Jan 04, 2008 6:25 pm
Post subject: How to use specific mathematic symbols in fields?
Archived from groups: comp>databases>paradox (more info?)

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

 >> Stay informed about: How to use specific mathematic symbols in fields? 
Back to top
Login to vote
Egbert Babst1

External


Since: Aug 29, 2003
Posts: 117



(Msg. 2) Posted: Fri Jan 04, 2008 6:52 pm
Post subject: Re: How to use specific mathematic symbols in fields? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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" schrieb im Newsbeitrag

> 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
>
>

 >> Stay informed about: How to use specific mathematic symbols in fields? 
Back to top
Login to vote
Egbert Babst1

External


Since: Aug 29, 2003
Posts: 117



(Msg. 3) Posted: Fri Jan 04, 2008 8:34 pm
Post subject: Re: How to use specific mathematic symbols in fields? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

....
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
_______________________________
 >> Stay informed about: How to use specific mathematic symbols in fields? 
Back to top
Login to vote
Frank Boelsen

External


Since: Oct 10, 2006
Posts: 4



(Msg. 4) Posted: Sun Jan 06, 2008 8:01 am
Post subject: Re: How to use specific mathematic symbols in fields? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
Key Fields - FOR PARADOX 8 I'm making a name and address database (no phone) with a dozen fields; there would be about 500 records. The sequence is: Last Name, First Name, Organization, Street, City, etc. Field type is A for all fields. I'm assigning a key to...

Grouping date fields in aquery - Hi Can anyone suggest how I can group (by month or year) a series of dates in a date field using a query, so that I can then chart some other data. Thanks Ian McKenzie

HTML Published Report omits data from fields - Paradoxians: I'm trying to publish a report to HTML 3.2 (using Paradox 10, Windows XP Home). The report calls a database that contains price, picture, description, retail price, item number. When I run the report, it looks OK, but when I publish, it...

TREEVIEW EN PARADOX - He desarrollado una aplicación utilizando el TImage List de Microsoft pero en algunos eventos me saca el mensaje GPV. ? que puede ser. La aplicación se encuentra en esta direccion ftp.gestioninformatica.com.co

A Paradoxical SQL Problem - I'm trying to solve this in an old Paradox database. Any suggestions (other than "don't use Paradox") would be appreciated: I have two tables USER_SKILL (USER,SKILL_ID,SKILL_LEVEL) e.g. Fred 10 3 Fred 12 4 Jim 11 4 SKILLS (SKILL_ID,SKILL_NA...
   Database Forums (Home) -> Paradox All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]