Mid.htm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>Mid$ (string$, offset, characters)</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. string$ = any valid string <br />
  13. offset = location within the string to start reading <br />
  14. characters = how many characters to read frm the offset point
  15. </td>
  16. </tr>
  17. </table>
  18. <h1>Description</h1>
  19. <table>
  20. <tr>
  21. <td>
  22. Use this command to grab a set of characters from within a string. You can choose WHERE to start in the string, and how many characters to pick. You'll probably use this to 'decode' or 'walk through' a string to get each character out of it for conversion or validation. See the Example.
  23. </td>
  24. </tr>
  25. </table>
  26. <h1><a href=../2d_examples/Mid.bb>Example</a></h1>
  27. <table>
  28. <tr>
  29. <td>
  30. name$="Shane Monroe" <br />
  31. For T = 1 To Len(name$) <br />
  32. Print Mid$(name$,t,1) <br />
  33. Next
  34. </td>
  35. </tr>
  36. </table>
  37. <br>
  38. <a target=_top href=../index.htm>Index</a><br>
  39. <br>
  40. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Mid&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  41. </html>