>I am having trouble using a variable for the length on a replicate statement - passing it from a function to a report. Any clues? If I hard code a length in it executes perfectly.
The following works fine on my machine:
mystring = "abc"
x = 5
? replicate(MyString, x)
Variables are accepted. Perhaps you may want to post the complete expression.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)