dbTalk Databases Forums  

User Defined Scalar Functions

comp.databases.btrieve comp.databases.btrieve


Discuss User Defined Scalar Functions in the comp.databases.btrieve forum.



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

Default User Defined Scalar Functions - 09-08-2004 , 08:34 AM






Hi,

Can someone tell me if it is possible to create a user defined scalar
function in Pervasive?

eg say I wanted to write a function called MyFixIt that changed all A's to
B's in a specified string.

Then, given the following table:

NameList

Name
ANDREW
SIMON
MARK

The Query:

Select Name,MyFixIt(Name) From NameList;

Would Give me:

ANDREW BANDREW
SIMON SIMON
MARK MBRK

Obviously my actual function is much more complicated than this, so please
don't suggest alternative ways of acomplishing the above example. It is how
to write my own function that I'm interested in.

Thanks,

Chris.


--
Please remove shoes to reply

But what ... is it good for?
- Engineer at the Advanced Computing Systems Division of IBM, 1968,
commenting on the microchip.



Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: User Defined Scalar Functions - 09-09-2004 , 09:36 PM






Not at this time...
BB

ChrisM wrote:

Quote:
Hi,

Can someone tell me if it is possible to create a user defined scalar
function in Pervasive?

eg say I wanted to write a function called MyFixIt that changed all A's to
B's in a specified string.

Then, given the following table:

NameList

Name
ANDREW
SIMON
MARK

The Query:

Select Name,MyFixIt(Name) From NameList;

Would Give me:

ANDREW BANDREW
SIMON SIMON
MARK MBRK

Obviously my actual function is much more complicated than this, so please
don't suggest alternative ways of acomplishing the above example. It is how
to write my own function that I'm interested in.

Thanks,

Chris.

--
Please remove shoes to reply

But what ... is it good for?
- Engineer at the Advanced Computing Systems Division of IBM, 1968,
commenting on the microchip.


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.