General information
Category:
Forms & Form designer
>Hi,
>I have some settings in a Data Environment of a form, which links a number of files together. This seems to have the effect of creating, automatically, a whole series of Set Relation To commands when the form is run.
>
>When I run up another form, I had code which it took me about 3 days to figure out what was going on. Everytime I referred to file 1 , it seemed to go to a particlar record in File 2 ,as follows:
>
>Select File1
>Goto Myrec && Should stay here
>Select File2 &&& but .... File1 record position changes now !!
>
>Each time File2 was selected, File1 was no longer at MYREC !!!
>
>My question is, is there an easy way to get rid of all the Set Realtion to commands when I close a form, because at the moment they are persisting , even afetr the form is closed .
>
Hi Gerard,
Use Private DataSession (thisform.DataSession = 2) and that way any DataEnvironment settings or xcode commands won't be remembered in default DataSession.
Previous
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