Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-15-2014, 06:59 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
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 "\\")
Reply With Quote
  #2  
Old 05-15-2014, 08:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
See the attached sample.
Attached Files
File Type: bld remove_backslash.bld (914 Bytes, 2133 views)
Reply With Quote
  #3  
Old 05-16-2014, 12:24 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Quote:
Originally Posted by kinook View Post
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?
Reply With Quote
  #4  
Old 05-16-2014, 12:34 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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
Reply With Quote
  #5  
Old 05-19-2014, 01:38 PM
Shiamak Shiamak is online now
Registered User
 
Join Date: 02-07-2006
Posts: 84
Awesome....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:20 PM.


Copyright © 1999-2023 Kinook Software, Inc.