Skip to content

[VFP] Macro compiler does not support the dbfname.fieldname expression #2018

Description

@cpyrgas

The macrocompiler throws an "XSharp.Error: Variable does not exist" when trying to macro compile a "dbfname.fieldname" expression

// FoxPro dialect
FUNCTION Start( ) AS VOID
	LOCAL cDbf AS STRING
	cDbf := "c:\test\macrotest"
	
	DbCreate( cDbf, {{"FLD1","C",10,0}},"DBFVFP")
	
	DbUseArea(TRUE,"DBFVFP",cDbf, "macrotest")
	DbAppend()
	FieldPut(1, "test")
	? macrotest.FLD1 // test, OK
	? &("macrotest->FLD1") // test, OK
	? &("macrotest.FLD1") // XSharp.Error: Variable does not exist: macrotest

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions