cancel
Showing results for 
Search instead for 
Did you mean: 

UDF for giving spaces to target field

former_member191435
Contributor
0 Kudos

Hi all,

I need to take length as input argument and target should be filled with length number of spaces:

Ex: if length is given as 6, target field should contain 6 spaces.

Regards,

Sreenivas

Accepted Solutions (0)

Answers (1)

Answers (1)

PriyankaAnagani
Active Contributor
0 Kudos

Hi Sreenivas,

Try with below code...

String result ="";

for(int i=0; i<length;i++){

result = result+ " ";

}

return result;

Regards

Priyanka