X-Sharp / XSharpPublic

Public repository for the source code for the XSharp Compiler, Runtime, Project System and Tools.
Apache License 2.0
112 stars 38 forks source link

[VFP] COPY STRUCTURE FIELDS not recognized #1533

Open cpyrgas opened 2 months ago

cpyrgas commented 2 months ago

All COPY STRUCTURE commands below result to error XS9002: Parser: unexpected input 'STRUCTURE'

FUNCTION Start( ) AS VOID
    LOCAL cDbf AS STRING
    cDbf := "test"
    ? DbCreate(cDbf,{{"FLD","C",30,0},{"FLD2","N",10,0},{"FLD3","N",10,0}},"DBFVFP")
    ? DbUseArea(TRUE,,cDbf)

    COPY STRUCTURE FIELDS FLD TO "test2" 
    COPY STRUCTURE FIELDS FLD TO "test2" WITH CDX
    COPY STRUCTURE FIELDS FLD,FLD2 TO "test2" 
    COPY STRUCTURE FIELDS FLD,FLD2 TO "test2" WITH CDX
    COPY STRUCTURE TO "test2" FIELDS FLD 
    COPY STRUCTURE TO "test2" FIELDS FLD , FLD2
    COPY STRUCTURE TO "test2" FIELDS FLD , FLD2 , FLD3