Carl, There is a setting to match the default datafile by name. If you choose that setting, a previously unopened structure will automatically open it’s name-matched datafile.
Place a name-matched empty datafile next to your structure file. In the “Startup…” method, detect that the name-matched datafile is open (after the last folder separator, the datafile name matches the structure file name). Then use OPEN DATA FILE to open the desired one. Hth! David Ringsmuth From: wangel--- via 4D_Tech Sent: Wednesday, October 30, 2019 4:24 AM To: [email protected] Cc: [email protected] Subject: SV: OPEN DATA FILE gets endless loop Hallo Chip, Yes I am aware of that. I was experimenting with OPEN DATA FILE to avoid 4D asking for a datafile. My idea was to distribute at standalone program with the structure in one folder and the datafile in another folder. That way the datafile would not be deleted when updating the structure. But using Inno Script it appears to be possible to update the structure without deleting the datafile, even in a one folder scenario. Thanks for your response. Carl >Date: Mon, 28 Oct 2019 16:35:27 -0400 >From: Chip Scheide <[email protected]> >To: 4D iNug Technical <[email protected]> >Cc: [email protected] >Subject: Re: SV: OPEN DATA FILE gets endless loop >Message-ID: <[email protected]> >Content-Type: text/plain; charset=iso-2022-jp >Carl, >Are you aware that once you point a 4D Database to a datafile - it remembers >that data file? >So... >Open database > -> where is my data file >Point database to data file >-> OK I'm happy! >startup completes. >You never have to do this again, unless you want to change data files. >Chip ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

