Information générale
Catégorie:
Codage, syntaxe et commandes
>Off the top of my head :
>oWord=createobject('word.application')
>with oWord
> .Documents.Open(lcMyDocument)
> .ActiveDocument.Content.Select
> .Selection.Copy
> .quit()
>endwith
>lnAdresses = alines(arrAdresses, _cliptext,',')
>Cetin
In VFP 7, ALINES() can have 4 parameters (2 required, 2 optional),
ie: ALINES(Array, String [, Trim [, Delimiter]]). Therefore, the above example need to move the third parameter to the fourth location and insert a logical into the third location.
In VFP 6, ALINES() only has three parameters (there is no optional delimiter), ie: ALINES(Array, String [, Trim ]). Therefore, to make the example work, the _cliptext would have to be replaced with CHRTRAN(_cliptext, ",", CHR(13)) and the third parameter would be changed to a logical or dropped.
Just my .02.
TC
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement