Hi Andy,
I've had a go at this and come up with the following (attached).
The string at the top of the page is recreated when you press Button 3 (labelled "rightpad with spaces") and strings the four input text fields together rightpadding each with spaces.
This example doesn't have any purpose because I wanted to take the database stuff out to simplify the example. But in my publication I'm using the rightpad to create columns in a listbox where each row is a number of columns from the database. To get each column to line up in the listbox I rightpad each before stringing it into the listbox.
Hope this helps and you find a use for it!
Best wishes,
Melanie
PS - return - hummmm..... it returns a variable from a function..... In this example it returns the value of column..... so that it can be assigned to another variable.
I know I haven't explained this properly - I'm not a programmer myself and often don't have the jargon right. Perhaps someone else with a better understanding could help out????