Mid

Prev Next Home Home Table Of Contents Index

Mid (string,pos,count) : String

Returns a string starting at pos for count.


Example:
Writeln Mid('ABCDEFG',3,3) ;returns 'CDE'

Mid also allows you to write into a string at a specified point. When using Mid in this manner you drop the 3rd parameter.


Example:
St = 'ABCDEFG' Mid(St,3) = '1' X becomes 'AB1DEFG' Mid(St,3) = '123' X becomes 'AB123FG' Mid(St,3) = '1234567' X becomes 'AB1234567' Mid(St,9) = '12' X becomes 'ABCDEFG 12'

Category: String

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home