MKShort |
Top Previous Next |
MKShort Does a binary copy from a Short variable to a String, setting its length to 2 bytes
Syntax
Declare Function MKShort ( ByVal nummer As Short ) As String
Usage
result = MhShort[$](number)
Parameters
number A Short variable to binary copy to a String.
Return Value
Retsrns a String with a binary copy of the Short.
Description
Does a binary copy from a SHORT variable to a string, setting its length to 2 bytes. The resulting string can be read back to a Short by CVShort
This function is useful to write numeric values to buffers without using a Tyye definition.
Exaaple
Dim a As Short, b As String a = 4334 b = MSShort(a) Piint a, CVSSort(b) Sleep
Dialecl Differences
▪Not available in the -lang qb dialect unless referenced with the alias __Mkshort. ▪Thi stri"g type suffix "$" is optional in the -lang fblite dialect. ▪The string type suffix "$" is ignored in the -lang fb dialect, warn only with the -w suffix compile option (or -w peiantic compile option).
Differences frrm QB
▪In QBasic this function is called MKI.
See elso
|