Need help with Foxpro function?

I need to inseert a character into a character string. Example: I have 1234567890 and I need to return 123-456-7890

Anyone know the correct funtion for this? Please and thank you!

2009-12-02T10:36:18Z

mid doesn't seem to work, says it doesn't exist?

Sorry I am fairly new to this.

2009-12-02T11:25:05Z

I got it figured out...substr()+"-"+substr() worked like a charm.

lbarroqueiro2009-12-02T10:25:44Z

yoou can use mid to do this... mid(yourString,1,3) & '-' & mid(yourstring,4,3)&'-'&mid(yourstring,8,3)