Thanks to all for the responses.

While trying to resolve an issue with locked records, I watched my routine
for handling named selections function. When the named selection was
created I “had no current record” because no record was visible in the
debugger. When Use named selection executed, the record became visible in
the debugger. That wasn’t what I had expected because I thought the record
had been unloaded.

Typically, I want to restore a selection with the current record (loaded).
In this situation, I want to make sure that it’s not loaded so I was
surprised when it showed up in the debugger.

--
Douglas von Roeder
949-910-4084


On Fri, Mar 13, 2020 at 6:43 AM kculotta via 4D_Tech <[email protected]>
wrote:

> An unloaded record can still be the current record.
>
> also
>
> ALL RECORDS([RecipeRec]) // has current record
> LAST RECORD([RecipeRec]) // has current record
> NEXT RECORD([RecipeRec]) // no current record
> .
> .
> .
> USE NAMED SELECTION("ASD")  // no current record
>
> > On Mar 13, 2020, at 8:05 AM, Chip Scheide via 4D_Tech <
> [email protected]> wrote:
> >
> > and I would read into that - IF there is no selected record, the command
> will load the First Record
> >
> > Chip
> >
> >
> >> Hi Douglas
> >>
> >>
> >> Doc says:
> >> When you create a named selection, the current record is “remembered”
> by the
> >> named selection. USE NAMED SELECTION retrieves the position of this
> record
> >> and makes the record the new current record; this command loads the
> current
> >> record.
> >>
> >> In your example, the first record is the "current record". So for me, it
> >> works like it should be.
> >>
> >> Patrick
> >>
> >>
> >>
> >> -----
> >> Patrick EMANUEL
> >> ------------------------------------------------------------
>
> **********************************************************************
> 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]
**********************************************************************

Reply via email to