Difference between revisions of "MID$ (statement)"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 1: Line 1:
The '''MID$''' statement specifies a position in a string to overwrite previous data.
The '''MID$''' statement specifies a position in a [[STRING]] to overwrite previous data.




Line 7: Line 7:




* String variable is any [[STRING]] value in quotes or a variable.
* String variable is any [[STRING]] or [[ASCII]] character values in quotes or a variable.
* Start specifies the string character to start and length reserves the space.
* Start specifies the string character to start and length reserves the space.
* The string value to be placed in the string should be as long as the length reserved.
* The string value to be placed in the string should be as long as the length reserved.
* The length of the original string is NOT changed in any case!






''See also:'' [[MKI$]], [[MKL$]], [[MKS$]], [[MKD$]], [[STR$]], [[HEX$]], [[Bitmaps]]
 
''See also:'' [[MKI$]], [[MKL$]], [[MKS$]], [[MKD$]], [[STR$]], [[HEX$]], [[Bitmaps]], [[ASCII]]





Revision as of 02:46, 18 September 2009

The MID$ statement specifies a position in a STRING to overwrite previous data.


Syntax: MID$(string_variable, start%, length%) = string_value


  • String variable is any STRING or ASCII character values in quotes or a variable.
  • Start specifies the string character to start and length reserves the space.
  • The string value to be placed in the string should be as long as the length reserved.
  • The length of the original string is NOT changed in any case!



See also: MKI$, MKL$, MKS$, MKD$, STR$, HEX$, Bitmaps, ASCII


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage