Skip to content

SCAN ... ENDSCAN no need to re-SELECT workarea before the ENDSCAN #36

Open

Description

@myearwood1

Even though there is a remark that SCAN ... ENDSCAN ensures that, upon reaching ENDSCAN, Visual FoxPro reselects the table (this should be alias) that was current when the SCAN ... ENDSCAN loop began.

I have seen many examples where programmers deliberately include SELECT original_alias right before the ENDSCAN. I suggest adding SELECT somealias before the SCAN example, and then showing another instance like this:

SELECT original_alias

ENDSCAN

and indicate that "SELECT original_alias" before the ENDSCAN is redundant and wasteful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions