Skip to content

[VFP] DBF/CURSOR commands throw runtime error when cursor specified without quotes #2017

Description

@cpyrgas

Found this problem trying to run a VFP app:

DbUseArea(TRUE,"DBFVFP","C:\xSharp\FoxPro\TestApps\Matt\data\customers.dbf", "customers")
? RecNo() // OK
SKIP 1 IN customers // XSharp.Error: Variable does not exist: customers

When I change the code to put the name in quotes, it works fine:

SKIP 1 IN "customers" // OK!

I suppose there are also other commands/functions that currently have the same issue.

Edit: Indeed, for example those have the same problem:
GOTO BOTTOM IN Customers
GOTO TOP IN Customers

Fortunately at least you cannot do BOF(customers) in VFP, gives a variable not found error. Need to use BOF("customers") which is already supported in X#

Metadata

Metadata

Assignees

Labels

FoxProFoxPro dialectUDCUser Defined Commands

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions