🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by ST21519 Thu, 15 Oct 1992 05:52
Hex$ adds a Carriage Return?
#287
Author: ST21519
Date: Thu, 15 Oct 1992 05:52
10 lines
943 bytes
I think have discovered something quite strange.
 
I generally print the output to a file with a ";" at the end so I do not have a
carriage return in places where one does not belong.  Usually I add one where I
deem appropriate...BUT when you print with a "HEX$(12345678);" you will have a
carriage return written to the file!
 
I am using PDS 7.1 to create this....Maybe it works with all forms of basic
by MS?  Might there be a way to call HEX$ so that one does not end up with a
carriage return?
Re: Hex$ adds a Carriage Return?
#288
Author: George Torralba
Date: Thu, 15 Oct 1992 07:39
22 lines
1236 bytes
In article <1688014FAE.ST21519@VM.CC.LATECH.EDU> ST21519@VM.CC.LATECH.EDU writes:
>I think have discovered something quite strange.
> 
>I generally print the output to a file with a ";" at the end so I do not have a
>carriage return in places where one does not belong.  Usually I add one where I
>deem appropriate...BUT when you print with a "HEX$(12345678);" you will have a
>carriage return written to the file!
> 
>I am using PDS 7.1 to create this....Maybe it works with all forms of basic
>by MS?  Might there be a way to call HEX$ so that one does not end up with a
>carriage return?


Couldn't you assign it to a dummy variable and if there indeed is a
carraige return, couldn't you just strip it off then?

  Dum$=HEX$(1234..)
  Dum$=left$(Dum$, LEN(Dum$)-1)   'if we're stripping c/r
  PRINT Dum$;


George
Re: Hex$ adds a Carriage Return?
#289
Author: ST21519
Date: Thu, 15 Oct 1992 17:09
9 lines
925 bytes
In article <5410@sumax.seattleu.edu>
>Couldn't you assign it to a dummy variable and if there indeed is a
>carraige return, couldn't you just strip it off then?
 
Why sure <grin>, but I thought maybe there was a magical way to call HEX$ that
might not be documented that would not place the Carriage Return after the
hex number.
 
Thanks for the note.  I found it an interesting discovery last nite.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads