Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: INSERT ... FROM NAME objectName
Message
De
07/04/2005 18:51:50
 
 
À
06/04/2005 11:13:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01001906
Message ID:
01002464
Vues:
19
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform