RSet
Right justifies a string in a string buffer
Syntax
`
Declare Sub RSet Overload ( ByRef dst As String, ByRef src As Const String )
Declare Sub RSet ( ByVal dst As WString Ptr, ByVal src As Const WString Ptr )
`
Usage
`
RSet dst, src
`
Parameters
`dst`
A `String` or `WString` buffer to copy the text into.
`src`
The source `String` or `WString` to be right justified.
Description
`RSet` right justifies text into the string buffer `dst`, filling the right part of the string with `src` and the left part with spaces.
Example
`
Dim buffer As String
buffer = Space(10)
RSet buffer, "91.5"
Print "-[" & buffer & "]-"
`
Differences from QB

- In QBasic the syntax was `RSet dst = src`

See also

- `LSet`
- `Space`
- `Put (File I/O)`
- `MKD`
- `MKI`
- `MKL`
- `MKS`