>I want to invoke SET ORDER TO from a function, outside of the form. How do I make it apply to the form, which, of course, has a private datasession?
>
>I was thinking about SET DATASESSION, but the manual gives this warning: "SET DATASESSION is typically used to debug forms, and should not be issued when a form is active.". How serious is this?
>
>TIA, Hilmar.
As far as I know, if you run your function from a form (say, command button), this function already operates within Private Form's DS, so you don't need to do anything special.
Otherwise you can pass Form's DS as a parameter. My colleagues use SET DATASESSION to lnPassedDS lots of times in a code without problems...
If it's not broken, fix it until it is.
My Blog