Showing posts with label VB. Show all posts
Showing posts with label VB. Show all posts

Remove Characters from String Using VBScript


The article referenced below provides details and examples of various methods that can be used to remove or replace characters in a string using VBScript. Some of the methods include using the replace method and an array of characters to remove and replace, or regular expressions.

Scenarios where certain characters need to be removed from a string may be when the truing is being used as a file name. Different platforms support various characters in filenames, but each have a set of special characters that are illegal when used in filenames. Removing or replacing these characters before saving the file will help prevent errors from occurring.

Characters can be removed explicitly or by exclusion depending on the preferred configuration. For example, a set of characters can be added to an array, that will be removed from or replaced in the input string, or a set or range of characters to remain in the output string can be provided, and any others will be removed or replaced.

For more information, see: VBScript Remove Characters from String

Php & InfoPath Code Resources


Fix a corrupt database table in PhpBB / MySQL.
This php script can be used to manage session times for users on a website.
Submit sites and RSS feeds to directories using this Php script.
Log users clicks/actions before they are taken to the desired address.
Php code to load and process an xml file.
A free Php script to generate RSS feed XML.
How to use code in an InfoPath form to loop through repeating elements in a secondary data source of an InfoPath form.
Tips for writing code in InfoPath forms.
How to set the alignment of elements on a webpage so that both Internet Explorer/IE and Firefox will display the element centered.
This article provides a function written in VBScript which removes illegal characters from a string.
How to call a VBA Class Module function from VBScript.
 
|  WebmasterHub.net Blog. Blogger Template By Lawnydesignz Powered by Blogger