Anytime I call wform to open a previously opened and released form, this code generates a file not found on the lin indicated
LOCAL lcAnte_Addr, lcPost_Addr, loSelect AS abSelect OF abData.prg, lcAnteAddr* Sauver les alias ANTE et POST s'ils sont ouverts lcAnte_Addr = Iif(Used('ANTE'), Dbf('ANTE'), Space(0)) lcPost_Addr = Iif(Used('POST'), Dbf('POST'), Space(0)) USE IN Select('ANTE') USE IN Select('POST')* Définir l'état initial de l'écran comme l'état antérieur de l'utilisateur (conforme à la génération HTML) loSelect = abSelect(0) USE (this.cPropsTableAddr(m.toForm.Name, 'Ini')) lcAnteAddr = this.cPropsTableAddr(m.toForm.Name, 'Old')* lcantaddr has in it a df name like xxxxxxxxx_old, which is already open in the datasession * so this produces a file is in use error:COPYTO (m.lcAnteAddr) WITHCDX USE (m.lcAnteAddr) ALIAS ANTE