"clear" (string::clear)
Empties the string.
Synopsis
int string.clear();
Parameters
| Parameter | Description |
|---|---|
| - | - |
Description
Clears the string, making it empty.
Example
main()
{
string s = "Alarm text";
s.clear();
DebugN(s);
DebugN(s.isEmpty() ? "TRUE" : "FALSE");
}
Console output:
WCCOAui1:[""]
WCCOAui1:["TRUE"]
Assignment
String
