Page 1 of 1

Is it possible to use for (int i=1;i>0;i++)variable + "aaa"; in the stimula report?

Posted: Wed Sep 08, 2010 1:50 pm
by user
or is there a function similar replicate (aString, 5 ) in FoxPro ?

Is it possible to use for (int i=1;i>0;i++)variable + "aaa"; in the stimula report?

Posted: Thu Sep 09, 2010 1:27 am
by Alex K.
Hello,

You can add function replicate in code of report:

Code: Select all

public string Replicate(string var, int n)
{
	string originalVar = var;
	for (int i=1; i<n; i++)
	{
		var += originalVar;
	}
	return var;
}
And use {Replicate(StringValue, Count)}

Thank you.