Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: INSERT ... FROM NAME objectName
Message
De
08/04/2005 03:48:07
 
 
À
07/04/2005 18:51:50
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:
01002527
Vues:
25
>>
>>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.

None is strange.

For not persistent objects it is useful for me
( in VFP a reference _WITHSTACK[level] lacks, but I cannot expect too much from the VFPT )
WITH CREATEOBJECT...
   .Prop1= ...
   .methodX
   =WITH_Procedure1(some parameters)
   WITH NEWOBJECT...

      ...
   ENDWITH
ENDWITH

PROCEDURE WITH_Procedure1(parameters)
   .Methods()
   .PropX = ....
   =WITH_Procedure2()
....
>
>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
Répondre
Fil
Voir

Click here to load this message in the networking platform