Kinook Software Forum

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

Shiamak 05-15-2014 06: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 08:50 PM

1 Attachment(s)
See the attached sample.

Shiamak 05-16-2014 12: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 12: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 01:38 PM

Awesome....


All times are GMT -5. The time now is 06:36 AM.


Copyright © 1999-2023 Kinook Software, Inc.