Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VbScript Object? String Manipualtion?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00682018
Message ID:
00682030
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>oWsh = CREATEOBJECT("wscript.shell")
>owsnet=CreateObject("WScript.Network")
>owsfs=CreateObject("Scripting.FileSystemObject")
>
>I have been playing around with the above WSH objects but I can not find any commands for string manipulation (I may need these for running scripts outside of VFP)
>
>Is there another object I am missing that can do this.
>
>Is there one called vbscript maybe. ie.
>
>oVbs= CREATEOBJECT("vbscript.shell")
>
>that allows
>
>myvar=oVbs.left(mvar,10)
>
>or something similar? I suspect I am missing the point here somewhere:)
>
>Many Thanks

Within a VBScript itself, there are functions such as Left(), Right(), Mid(), and so on. A good place to start would be the MSDN Library. There's a lot of examples within it. Beyond that, I'd recommend the "Windows Script Host Programmers Reference" by Dino Esposito from Wrox Press. The later contains a reference the the VBScript commands, functions and constants.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform