Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create variable with a len of 20 using a char field of varying length

Status
Not open for further replies.

rollypac

Programmer
Jun 13, 2003
23
0
0
US
Working in MVFoxpro 6. The original character field is 9-12 characters.I need to create a variable with this field whose length needs to be 20 char no matter how long the original field is, with the blanks at the end. Ex"ada 2003 "
Thanks in advance for any help.
 
PADR(MyString, 20, " ")

Would this work for you?

Regards,

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top