General information
Category:
Coding, syntax & commands
>> Set ORDER() of course sets the order to "" not Actnum, the GOTO moves the
>> record pointer to the added record in the Default Data Session, but remains
>> on another record in the Private Data session. It's almost like any
>> movement of the record pointer by a method outside of the form effects the
>> Default Data Session, even thought the method was called from within a
>> form with a Private Data Session. What do you think?
>
> Ed, what do you think if you added a second parameter, the datasession
>ID, like this
>
>LPARAMETERS lcTable, lnDSID
>
>PRIVATE oldOrder
>if !empt(lnDSID)
> set datasession to lnDSID
>endif
>
>SELECT &lcTable
>
>that way you force the datasession to the form's datasession, and
>override the default behavior. Moreover, the routine may still be used
>from outside any form, just as before, by leaving out the lnDSID.
Good thought
Ed
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only