XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

[VFP] COPY STRUCTURE FIELDS not recognized

Open cpyrgas opened this issue 1 year ago • 0 comments

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

cpyrgas avatar Jul 29 '24 16:07 cpyrgas