13.07.2015 Views

Turbo Basic

Turbo Basic

Turbo Basic

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MKMD$, MKMS$ functionsFunctionSyntaxRemarksSee AlsoExampleMKMD$ and MKMS$ convert numeric data into Microsoft-formatstrings (for random file output).s$ = MKMS$ (single-precision expression)s$ = MKMD$(double-precision expression)The "Make Microsoft" functions are provided solely for compatibilitywith existing random files that contain floating-point values~ in.Microsoft format.MKMS$ creates a Microsoft-format 4-byte string from a singleprecisionvalue; MKMD$ makes an 8-byte Microsoft string given adouble-precision value.CVMDCVMSI open a random access fileOPEN "CVMD~DTA" AS II LEN = 12FIELD 11~ 4 ASSingle$~ 8 AS Double$MaxInt% = 32767FOR 1% = 1 TO 5 I write data to fileLSET Double$ = MKMD$(I% + MaxInt%)PUT 11,1%NEXT 1%FOR 1% = 1 TO 5 I read data from fileGET '1, 1% I display on screenPRINT CVMS(Single$), CVMD(Double$)NEXT 1%CLOSE #1 I close the fileEND I end the program266<strong>Turbo</strong> <strong>Basic</strong> Owner's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!