>Naomi,
>Probably you do not understand what I'm trying to say.
>-Keep your SP as is.
>-Copy functions outside to a prg also. In prg version move declaration outside generator function.
>-In your 'load' routines instead of leaving pk out to call default fill it from prg based one.
>Cetin
Ah, ok. I was concerned about removing this procedure from SP. Now, the PK field has GUID() as default value. If I want to use class procedure, say, this.CreateGUID(), then I would need to adjust every single insert command to include PK field in it.
That I can do. I also can keep HexToChar and BinToHex procedures in SP...
If it's not broken, fix it until it is.
My Blog