Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel replace function
Message
 
À
16/02/2006 13:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01096827
Message ID:
01096838
Vues:
24
This message has been marked as the solution to the initial question of the thread.
Jeana,
Go to macro editor in Excel, Mark replace and press F1 the help for Replace will appear, check how the parameters are positioned in that function and position it the same way in VFP. Do not use named parameters, VFP could not understand them.
** Here what Excel Help said about replace
expression.Replace(What, Replacement, LookAt, SearchOrder, MatchCase, MatchByte, SearchFormat, ReplaceFormat)
** so you must do something like:

#define xlByRows 1
#define xlPart   2

oExcel.Cells.Replace([$null], [0], xlPart, xlByRows, .f., , .f., .f.)
Something like this, but not tested
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform