>>>>The m.euroansi is a public variable, so you don't have to restore it before every select.
>>>
>>>Well, based on my test, it is not. I moved that line in the init of the launch and that variable is not seen afterward. Do I need to declare it public prior to the restore?
>>
>>See my reply to Sergey. I think your best bet is to store it as a property of wwSession or any other object which is always there:
>>
>>
restore from european
>>this.addproperty("euroansi", m.euroansi)
>>
>>and rework your code to use session.euroansi instead of m.euroansi.
>
>Ok, it now works. I don't know why but I made PUBLIC m.european instead of m.euroansi. I wonder why MS VFP team didn't use the same variable name as the restore file.
For historical reasons - european.mem had m.european in it since the earliest versions of Fox. I've found european.mem with dates of 1986. Now the contents of the variable are probably somewhat different - not the OEM charset, but ANSI - and that may well be the reason.