Kinook Software Forums

Kinook Software Forums (http://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (http://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Removing slash from a string (http://www.kinook.com/Forum/showthread.php?t=5268)

Shiamak 05-15-2014 07:59 PM

Removing slash from a string
 
I have need to remove couple of slashes from a string (in a macro), then reassign the value to the same macro. Is there an easy way to do it in VBP 8?

Original String
1. STRING1 - "\\Machine1" (STRING1 IS A MACRO)

Expected:
STRING1="MACHINE1" (Removing "\\")

kinook 05-15-2014 09:50 PM

1 Attachment(s)
See the attached sample.

Shiamak 05-16-2014 01:24 PM

Quote:

Originally Posted by kinook (Post 20772)
See the attached sample.

It totally worked... Thanks a bunch.
A quick qs though, is there a list of similar functions available in VBP help? or you just called a VB function?

kinook 05-16-2014 01:34 PM

It depends. In this case, a VBScript function is the way to go.
http://msdn.microsoft.com/en-us/library/3ca8tfek

For built-in script functions in Visual Build, see
http://www.kinook.com/VisBuildPro/Ma...temscripts.htm

For manipulating the Visual Build object model, see
http://www.kinook.com/VisBuildPro/Ma...bjectmodel.htm

Shiamak 05-19-2014 02:38 PM

Awesome....


All times are GMT -5. The time now is 02:25 PM.


Copyright 1999-2019 Kinook Software, Inc.