Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replicate() function
Message
From
23/08/2001 09:17:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/08/2001 09:11:04
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00547882
Message ID:
00547890
Views:
8
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform