Xref: utzoo comp.databases:634 comp.sys.ibm.pc:10569 Path: utzoo!utgpu!water!watmath!clyde!rutgers!orstcs!mist!nacer From: nacer@mist.cs.orst.edu (Abdenacer Moussaoui C.) Newsgroups: comp.databases,comp.sys.ibm.pc Subject: DB3 III and MATH ?? Summary: user-defined function support in db3 Message-ID: <1971@orstcs.CS.ORST.EDU> Date: 20 Jan 88 09:51:23 GMT Sender: netnews@orstcs.CS.ORST.EDU Reply-To: nacer@mist.UUCP (Abdenacer Moussaoui C.) Distribution: na Organization: Oregon State Universtiy - CS - Corvallis, Oregon Lines: 35 From what I have tried there is no support for sin() cos() functions. May be clipper supports them however I don't want to loose the interpretive mode of db3+ at least at this stage. (1) I think db3+ supports some sort of object code LOADing and CALLing has anybody implementated such "basic" trig stuff in whatever (asm,c,...) ??? (2) Is there such thing as user-defined function in db3+? (3) How to go about seting up some mem-vars to simulate predefined constants such as PI for example? (4) Ideally I would like to have these suppositely constants in database where they could be easily modified and then set again. I tried a simple 2 field database with name and value fields then I used: USE CONST.DBF DO WHILE .NOT. EOF() STORE VALUE TO &NAME && store value in the variable contained && in the field NAME SKIP ENDFO this would have been great if it worked. I think for such thing to work implies that mem-vars need to be allocated on the heap and not in the *fixed* data-segment. Thank you. --nacer