dbreader class : TrimDQ(string) method
Description
Returns a new string with double quotes removed.
Syntax
instance.TrimDQ(string str)
Arguments
Class | Name | Description |
string | str | Original string. |
Return value
Class | Description |
string | String with double quotes removed. |
Sample code
1: | dbreader re = new dbreader(); |
2: | string example = "".DQ + "sample" + "".DQ; // "sample" |
3: | example = re.TrimDQ(example); // sample |
Notes
If the arguments start and end with double quotes, the new string with double quotes removed is returned.
If the double quote is on only one side, it will not be deleted. It also does not remove other double quotes in the string.
If double quotes did not delete, a new string is returned that is a copy of the argument.
Links for reference
None.