Skip to content

[VFP] SET DATE TO does not support variable values #2019

Description

@cpyrgas

The following is allowed in VFP, but in X# causes a compiler error XS9002: Parser: unexpected input 'DATE'

LOCAL cDateFormat
cDateFormat := "AMERICAN"
	
SET DATE TO cDateFormat

The actual code where I saw it used is actually more complex, reads the format from a cursor field, we need to make sure we support that, too:

SET DATE TO AllTrim( cursorname.cdatef )

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions