By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,506 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,506 IT Pros & Developers. It's quick & easy.

Trim

OuTCasT
100+
P: 374
Hi everyone. i need to trim text in a textbox. i populate a textbox which is for example company.mdf
Now is need to trim the textbox so that it will show company and not company.mdf
Jul 21 '08 #1
Share this Question
Share on Google+
1 Reply


P: 15
I think this should work:

Expand|Select|Wrap|Line Numbers
  1. TextBox.Text = Left(TextBox.Text, (Len(TextBox.Text) - 4))
Jul 21 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.