Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: INSERT ... FROM NAME objectName
Message
From
07/04/2005 18:51:50
 
 
To
06/04/2005 11:13:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01001906
Message ID:
01002464
Views:
13
>
>WITH CREATEOBJECT("empty")
>ENDWITH
>

Fabio-

There is something very strange about creating ojbect within a WITH block that won't be available outside of the block.

But I suppose you could do something like:
WITH CREATEOBJECT( "Word.Application" )
	.Visible = .T.
	loDocument = .Documents.Add()
	loSelection = .Selection
	loSelection.TypeText("Hello World")
	loDocument.SaveAs("HelloWorld")
	.Quit()
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform