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

Mid function understanding

P: 1
I am just starting out on learning Visual Basic. I have the following code in a learning project but cannot understand how part of it works. The code is:-

W = Format(CDbl(W), "0.0")
Mid(S, 20 - Len(W), Len(W)) = W

The 20 is the start character in the string but, how are the next characters determined by the code "-Len(W), Len(W)".

I look forward to someone shedding some light on this for me.
Jul 5 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,127
Please find a realted article here .
Jul 7 '08 #2

Post your reply

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