Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VbScript Object? String Manipualtion?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00682018
Message ID:
00682030
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform