>Fabio,
>
>Have you read documentation?
>
Aleksey,
Of course!
Why have I written the WITH ENDWITH code?
On documentation is written
ObjectNamein WITH .. ENDWITH and in INSERT ... FROM NAME,
in WITH CREATECURSOR() do the job,
in INSERT no
Same syntax word "ObjectName", same meant.
Or I must read the documentation as
"more or less this is the syntax, tries and sees if it works".
Fabio
>
>FROM NAME ObjectName
>
>
>Thanks,
>Aleksey.
>
>
>>VFP have not a
>>
>> INSERT INTO table DEFAULT VALUES
>>
>>* APPEND BLANK don't support NULL ( a bug for me )
>>
>>Then i try to simulate it with a empty object
>>
>>On next code I expected no errors
>>
>>
>>#DEFINE DEFAULT_VALUES FROM NAME CREATEOBJECT("empty")
>>SET NULL ON
>>CREATE CURSOR byby (aa i,cc i)
>>* HELP: WITH objectName
>>* objectName == CREATEOBJECT("empty") no errors
>>
>>WITH CREATEOBJECT("empty")
>>ENDWITH
>>
>>* HELP: INSERT ... FROM NAME objectName
>>* objectName == CREATEOBJECT("empty") error
>>
>>INSERT INTO byby DEFAULT_VALUES
>>
>>
>>Fabio