Hi Bill, This will do the job:
dim a as logical dim b as smallint a = 0 b = 10000 open file "test.bin" for output as #1 put #1,,b put #1,,a Kind regards Uffe Kousgaard www.routeware.dk ----- Original Message ----- From: "Bill Thoen" <[EMAIL PROTECTED]> To: "MapInfo-L" <[EMAIL PROTECTED]> Sent: Wednesday, September 04, 2002 5:05 AM Subject: MI-L A Hard MapBasic question > Since MapBasic does not recognize an 8-bit data type (like Visual > Basic's Byte or C's unsigned char) how do I write a three byte > binary file in MapBasic with the last byte being a null? > > -- > - Bill Thoen > ------------------------------------------------------------ > GISnet, 1401 Walnut St., Suite C, Boulder, CO 80302 > tel: 303-786-9961, fax: 303-443-4856 > mailto:[EMAIL PROTECTED], http://www.gisnet.com > ------------------------------------------------------------ > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 2806 > > --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 2809
