Skip to content

[VFP] RELEASE ALL LIKE does not support quotes form #1870

@cpyrgas

Description

@cpyrgas

In VFP, it's possible to use RELEASE ALL LIKE in two forms:

  1. RELEASE ALL LIKE c*
  2. RELEASE ALL LIKE "c*"

In X#, only the 1st form is supported. The 2nd form does not throw a compile or run time error, but does not release memvars:

FUNCTION Start() AS VOID
ccc := 123
? ccc // prints 123
RELEASE ALL LIKE "c*"
? ccc // prints 123, should be a runtime error
RELEASE ALL LIKE c*
? ccc // runtime error as expected

I'm a little puzzled, because the .ppo file shows the command preprocessed as

_MRelease( ""c*"", TRUE )

but the compiler is happy with it...

Metadata

Metadata

Labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions