Y
Yoavo
Hi,
I want to make a dynamically string format padding on a given string but I
get ABORT when doing it:
string aTest = string.Format("--{0,10}--", "test"); // this is
OK
string aTest2 = string.Format("--{0,-10}--", "test"); // this is
OK too
int aNum = 10;
string aTest3 = string.Format("--{0,-aNum}--", "test"); //
trying to make the padding value dynamically -> ABORT
can someone please help ?
thanks,
Yoav.
I want to make a dynamically string format padding on a given string but I
get ABORT when doing it:
string aTest = string.Format("--{0,10}--", "test"); // this is
OK
string aTest2 = string.Format("--{0,-10}--", "test"); // this is
OK too
int aNum = 10;
string aTest3 = string.Format("--{0,-aNum}--", "test"); //
trying to make the padding value dynamically -> ABORT
can someone please help ?
thanks,
Yoav.