Skip to content

[VFP] CREATE TABLE issues specifying file name #1863

@cpyrgas

Description

@cpyrgas

// OK:
CREATE TABLE TestTable1 (fld1 c(16))

/*
XSharp.Error: Syntax error in command: 
CREATE TABLE (cFileName) (fld1 c(16))
*/

LOCAL cFileName AS STRING
cFileName := "C:\test\TestTable2"
CREATE TABLE (cFileName) (fld1 c(16))

/*
System.IO.FileNotFoundException
Could not find file 'C:\XIDE\Projects\VFP\Bin\Debug\C.DBF'.
*/
CREATE TABLE C:\test\TestTable3 (fld1 c(16))

Metadata

Metadata

Labels

Type

Projects

Status

Needs testing

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions