🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #288

Re: Hex$ adds a Carriage Return?

#288
From: 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
Technical Details
Message-ID: <5410@sumax.seattleu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!usenet.coe.montana.edu!news.u.washington.edu!sumax!grtorlba
References: <1688014FAE.ST21519@VM.CC.LATECH.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!usenet.coe.montana.edu!news.u.washington.edu!sumax!grtorlba
From: grtorlba@sumax.seattleu.edu (George Torralba)
Newsgroups: alt.lang.basic
Subject: Re: Hex$ adds a Carriage Return?
Message-ID: <5410@sumax.seattleu.edu>
Date: 15 Oct 92 07:39:41 GMT
References: <1688014FAE.ST21519@VM.CC.LATECH.EDU>
Organization: Seattle University, Seattle WA
Lines: 23