Never mind. I have written one myself.
string PadLeft (string S, int toLength)
{
string t = S;
string c = "0";
while(StringLen(t) < toLength)
t = c + t;
return (t);
}
string PadLeft (string S, int toLength)
{
string t = S;
string c = "0";
while(StringLen(t) < toLength)
t = c + t;
return (t);
}

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
{
if (StringLen(S) < toLength)
//return (StringSetChar (withChar, toLength - StringLen(S), 0) + S);
else
return (S);
}