HDTenEightyP/NetNews huggingface dataset:
From: jimc@tau-ceti.isc-br.com (Jim Cathey)
Newsgroups: alt.lang.asm
Subject: Re: DUART MC68661 to MC68681 serial device
Date: 15 Oct 92 01:36:35 GMT
Organization: ISC - Bunker Ramo, Spokane, WA

In article <1992Oct14.111902.379@doc.bmd.trw.com> nickgill@doc.bmd.trw.com writes:
>Can anyone tell me what is wrong with this DUART MC68681 code?
>
>INIT_SERIAL
>move.b #$1a,duart_crb * turn port off, reset mr pointer
>move.b #$13,duart_mrb * set mr1b for 8 bits, no parity, 1 stop
>move.b #$7,duart_mrb  * set mr2b for 1.000, 1.5
>move.b #$bb,duart_csrb * set port b to 9600 baud (send & receive)
>move.b #$5,duart_crb  * turn port on
>move.b #$70,duart_isr * set interrupt mask for break, Tx, Rx
>move.b #$10,duart_ivr * set interrupt vector offset for vector #64
>move.b #U05_isr,$100  * set interrupt vector to U05_isr

---^
move.l, I should think.

>rtn
>
>Background: Using public domain motorola MVME 101 for the 68000 processor
>and the MC68661 serial device (DUART), I am modifing this code for the
>DUART MC68681 but seem to get unexpected interrupts.
>
>By changing the move.b "#$70" to "#$10", crippling the serial device, I
>have got my program to work but I would like to know why I can't set the
>interrupt mask for break, Tx, and Rx without a problem.

What happens when you use a $30 for IMR?  I.e., is the problem extra 
interrupts on the BREAK channel, or on RXRDY?  You can read the ISR
register to see what's up at interrupt time.  A break detect interrupt
can only be cleared by issuing a $50 to the CR, otherwise you'll keep
getting hit with the interrupt.

More information is required.  Btw, I hope the processor interrupt mask
is off during this subroutine --- it's usually a good idea to do the IMR
enabling last, since the IVR isn't set first in your code.  Even 'laster',
you should hit CRB to turn on the receiver.

Here's a code snippet from one of our products:

initdrt lea.l drtbbas,a1                ; For Wincom keyboard.
        move.b #$1A,drt_cr(a1)          ; Enable MR1, Disable Rx & Tx.
        move.b #$07,drt_mr1(a1)         ; 8 bits odd parity.
        move.b #$2F,drt_mr2(a1)         ; Normal, RTS, 2 stop bits.
        move.b #$88,drt_csr(a1)         ; RxClk, TxClk = 2400 Baud.
        move.b #(gpip0vec/4),drt_ivr(a1) ; Interrupt vector.
        move.b #$09,drt_cr(a1)          ; Rx Enable, Tx Disable.
        move.b #$04,drt_opcr(a1)        ; OP3 = C/T out.
        move.b #$FF,drt_rout(a1)        ; Reset all OPR[n].
        move.b #$20,drt_imr(a1)         ; Enable Channel B RXRDY interrupt.
        move.b #$50,drt_cr(a1)          ; Enable Channel B Tx & Rx.

-- 
+----------------+
! II      CCCCCC !  Jim Cathey
! II  SSSSCC     !  ISC-Bunker Ramo
! II      CC     !  TAF-C8;  Spokane, WA  99220
! IISSSS  CC     !  UUCP: uunet!isc-br!jimc (jimc@isc-br.isc-br.com)
! II      CCCCCC !  (509) 927-5757
+----------------+
			"PC's --- the junk bonds of the computer industry"
From: nickgill@doc.bmd.trw.com
Newsgroups: alt.lang.asm
Subject: DUART MC68661 to MC68681 serial device
Date: 14 Oct 92 18:19:01 GMT

Can anyone tell me what is wrong with this DUART MC68681 code?

INIT_SERIAL
move.b #$1a,duart_crb * turn port off, reset mr pointer
move.b #$13,duart_mrb * set mr1b for 8 bits, no parity, 1 stop
move.b #$7,duart_mrb  * set mr2b for 1.000, 1.5
move.b #$bb,duart_csrb * set port b to 9600 baud (send & receive)
move.b #$5,duart_crb  * turn port on
move.b #$70,duart_isr * set interrupt mask for break, Tx, Rx
move.b #$10,duart_ivr * set interrupt vector offset for vector #64
move.b #U05_isr,$100  * set interrupt vector to U05_isr
rtn

Background: Using public domain motorola MVME 101 for the 68000 processor
and the MC68661 serial device (DUART), I am modifing this code for the
DUART MC68681 but seem to get unexpected interrupts.

By changing the move.b "#$70" to "#$10", crippling the serial device, I
have got my program to work but I would like to know why I can't set the
interrupt mask for break, Tx, and Rx without a problem.

Any hints or suggestions.
Nick 
Newsgroups: alt.lang.asm
From: gillmore@picard.slc.mentorg.com (Mike Gillmore (Consultant))
Subject: Re: Help, Please.....
Reply-To: mike_gillmore@mentorg.com
Organization: Mentor Graphics Corp.,  Murray, Utah
Date: Tue, 6 Oct 1992 20:03:18 GMT

In article <05OCT92.21630772.0089@VM1.MCGILL.CA>, HDKO@MUSICB.MCGILL.CA (HDKO) writes:
> Hi Everyone,
> 
> I know I am just a plebe taking a first course in assembler, but
> would someone be so kind as to answer the following question:
> 
> How do I use the LENGTH reserved word to calculate the length
> or number of characters in a given string.  Unfortunately the
> beginners book I have doesn't delve into it.
> 
> Much appreciated.
> 
> an amateur.
> 
> Indy.
> 
> hdkk@musicb.mcgill.ca
> indy@geloser.login.qc.ca
> 
> P.S.:  If there is a better way than using LENGTH, that's fine too.

Assuming that you are using an 80x86 device, the code will take
one of two approaches.  One is more straightforward (much
like we would do it on the 8080/8085/Z80), and the (perhaps)
faster method.  First the older approach:

Stack_Frame	Struc
	RtnAddr		Dw	?
	OldFrame	Dw	?
	StringAddr	Dd	?
Stack_Frame	Ends

_strlen_old	Proc	Near
	Push	Bp
	Mov	Bp, Sp		; Setup Stack Frame
	Xor	Al, Al		; Searching for zero
	Les	Di, [Bp].StringAddr
	Xor	Cx, Cx
StringLoop:
	Mov	Ah, Byte Ptr Es:[Di]
	Or	Ah, Ah
	Jz	FoundNull
	Inc	Cx
	Inc	Di
	Jmp	Short StringLoop
FoundNull:
	Mov	Ax, Cx		; Return value into AX
	Pop	Bp
	Ret			; Let CALLER cleanup stack
_strlen_old	Endp

_strlen_new	Proc	Near
	Push	Bp
	Mov	Bp, Sp		; Setup Stack Frame
	Les	Di, [Bp].StringAddr	; Address of String
	Xor	Al, Al		; Search for NUL terminator
	Xor	Dx, Dx		; Counter initialization
	Xor	Cx, Cx
	Dec	Cx		; We will countdown, so max len is 65535
	Rep	ScansB		; Search for the zero
	Neg	Cx
	Mov	Ax, Cx		; Return value into AX
	Pop	Bp
	Ret			; Let CALLER cleanup stack
_strlen_new	Endp


I show you these approaches because the LENGTH operator is more like
the sizeof() operator in C

-- 
Mike "Okie" Gillmore
no .sig, no glory
From: beng@dorsai.com (ben ng)
Newsgroups: alt.lang.asm
Subject: debugger
Date: 11 Oct 92 13:08:11 GMT
Organization: The Dorsai Embassy, New York's Computer Consulate. +1.718.729.5018

Hello Everybody in ASM Land.

   I'm working on a debugger. Well not a true debugger...just something
to check on my own programs. I've got the Trap Flag codes to set and
clear. I'm using EXEC to load and execute the test program. The problem
is that when it singles steps instructions it seems to only step one
instruction...INT 21 of the parent of the EXEC function.
Do I have to use a different EXEC function? (I'm using 4B00)
Will I need to SET the TF again from within the handler?
Am I suppose to use the EXEC function at all?
 
Thanks a bunch. If anyone has experience in this and think they could
help I'll be more than happy to send the "source".
 
Ben Ng
beng@dorsaid.com
uupsi!dorsaidm!beng
1:278/706
Newsgroups: alt.lang.asm
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: Help, Please.....
Organization: Warsaw University Physics Dept.
	<Bvq1GK.27v@ecf.toronto.edu>
Date: Wed, 7 Oct 1992 17:49:35 GMT

>>>>> On Tue, 6 Oct 1992 22:36:19 GMT, tee@ecf.toronto.edu (TEE LUNS) said:
TEE> In article <JT.92Oct6141748@fizyk1.fuw.edu.pl> jt@fuw.edu.pl (Jerzy Tarasiuk) writes:
(deleted)
TEE>    Am I missing something, or does this seem rather redundant? Why not
TEE> string	macro	label, value
TEE> label	db	strvalue
TEE> &label&len	equ	$-label
TEE> string	endm

Quite good (replace the '$' by 'this byte' or some malicious assembler
can tell you try to subtract relative addresses of different types).
But my macro allows to use LENGTH keyword to get string length ...
kind regards, Jerzy
From: cermak@gandalf.rutgers.edu (Rob Cermak)
Newsgroups: alt.lang.basic
Subject: Re: Simple Modem Program Wanted
Date: 13 Oct 92 18:31:18 GMT
Distribution: usa
Organization: Rutgers Univ., New Brunswick, N.J.


ON ERROR GOTO HICK

REM ** SET FOR SPEED OF MODEM - Make sure you set the correct 
REM ** Modem parameters...IE: 8N1 is a N,8,1 below    
OPEN"COM1:2400,O,7,1,CS,DS,RS,CD" AS 1
T=TIMER
REM ** This delays each 30 sec
DO WHILE INSTR(X$,"RING")=0
   IF (TIMER-T)<5 or (TIMER-T)>30 THEN X$="":T=TIMER:REM ** Reset STRING
   IF EOF(1)=0 THEN X$=X$+INPUT$(1,1):T=TIMER
LOOP

CLOSE 1

REM ** Set for speed to call-back 
OPEN"COM1:4800,O,7,1,CS,DS,RS,CD" AS 1
PRINT #1,"ATZ ###-####" : REM *** The phone number!
END

HICK:
IF ERR=57 THEN RESUME:REM ** Trap LOUZY UART Device Errors
ERROR ERR
END
-- 
Rob Cermak			        EMAIL : cermak@gandalf.rutgers.edu
Programmer NJ Climate Center &		USMAIL: Rutgers University
Prog/Tech Rutgers Meteorology-COOK              Department of Meteorology
FAX             :908 932-7922			Cook College  PO BOX 231
Meteorology Dept:908 932-9387                   New Brunswick NJ 08903-0231
Newsgroups: alt.lang.basic
From: stevepo@microsoft.com (Steven Podradchik)
Subject: Re: VBDOS questions for MS guys
Date: 07 Oct 92 19:21:24 GMT
Organization: Microsoft Corporation
Distribution: usa

In article <droland.921006185344@lab18.eng.auburn.edu> droland@eng.auburn.edu (David A. Roland) writes:
>Thanks for the info on everything.  Do I get a prize or anything for 
>finding that SENDKEYS wasn't in there?
You get my sincere thanks.  At least my mother thinks that this is a prize
to be valued above all else :)

>Let me ask one other question, I was using SENDKEYS to send a TAB everytime
>the user hit ENTER so that on data entry you could whiz through forms.
>Without it I have to set the focus to the next textbox in order.  I tried
>having the keypress event do something like this
>	if keyascii=13 then keyascii=9
>but this doesn't work any other way that is that simple?
Not sure, off hand, how to simulate SendKeys to do this but there is
another way that's really simpler anyway.

Simply set up your text boxes as a control array.  Then your code would
be something like:
Sub txtDataEntry_KeyPress (Index as Integer, KeyAscii as integer)
	if KeyAscii = 13 then
		if Index < MaxFields  then 'the # of text boxes on your form
			txtDataEntry(Index+1).SetFocus
		end if
	end if
end sub

This method works fine in vb/win and vb/dos and is somewhat 'cleaner' than
using SendKeys.

Thanks, Steve


Newsgroups: alt.lang.basic,news.answers
From: om8941@curry (Orlin Melstrand)
Subject: HP Laserjet printing from QuickBasic
Organization: Medtronic, Inc.
X-Newsreader: Tin 1.1 PL4
Date: Mon, 12 Oct 1992 17:17:20 GMT

Is there any way to get QuickBasic to eject partial pages printed on the 
HP Laserjet?  I have a friend who has a Laserjet, and when he does a PRINT
from QuickBasic, he always has to use a manual page eject to get the last
partial page out.  Has this been fixed on Visual Basic?

Thanks.    

Orlin Melstrand

Newsgroups: alt.lang.basic
From: ST21519@VM.CC.LATECH.EDU
Subject: Hex$ adds a Carriage Return?
Organization: LOUISIANA TECH UNIVERSITY
Date: Wed, 14 Oct 92 23:52:14 CST

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?
Newsgroups: alt.lang.basic
From: daryl@garfield.cs.mun.ca (Daryl Clarke)
Subject: Re: Please Help
Organization: CS Dept., Memorial University of Newfoundland
Date: Thu, 8 Oct 1992 16:00:22 GMT

Is this the proper newsgroup for alt.american.election.polling?


-- 
Consider it stepped on.                                            Daryl Clarke
  - Valentine McKee, "Tremors"
                                                       daryl@garfield.cs.mun.ca
                                                       daryl@sparky2.esd.mun.ca
Newsgroups: alt.lang.basic
From: dhiggs@magnus.acs.ohio-state.edu (General Protection Fault)
Subject: Re: HP Laserjet printing from QuickBasic
Organization: is the refuge of the unimaginative!
Date: Tue, 13 Oct 1992 03:26:27 GMT


In article <1992Oct12.171720.24441@medtron.medtronic.com> om8941@curry (Orlin M
elstrand) writes:
+Is there any way to get QuickBasic to eject partial pages printed on the
+HP Laserjet?  I have a friend who has a Laserjet, and when he does a PRINT
+from QuickBasic, he always has to use a manual page eject to get the last
+partial page out.  Has this been fixed on Visual Basic?
+
+Thanks.

Sure!  I'll assume you can send a line of text to the printer with something
like 

PRINT #1, "Print this string."

Using that same routine you can use

PRINT #1, CHR$(nn)

to print any of the 254 printable chars.  Just replace nn with the ASCII 
sequence number for the formfeed character.  I believe FF is #12 so you get...

PRINT #1, CHR$(12)

to send a form feed to LPTx.   I've also seen a DEBUG script which creates an 8 
byte .COM file you can run with the SHELL command.  You could accomplish this 
same task by writing a .BAS which calls the DOS interrupt to the printer or 
sends a FF char as above.  Your choice, the results are the same.

Keith.+
+Orlin Melstrand
+
-- 
D.K.Higgs  DATA+@osu.edu  a.k.a. dhiggs@magnus.acs.ohio-state.edu _____   __o
Ohio State University Libraries, Acquisitions Department      -------    -\<,
Continuation Acquisition Division                              ------ ( )/ ( )
~~(614)292-6314~~~~~~fax(614)292-2015~~~~~~~~~~\_________/~~~~~~~~~~~~~~~~~~~
From: cermak@gandalf.rutgers.edu (Rob Cermak)
Newsgroups: alt.lang.basic
Subject: Re: Simple Modem Program Wanted
Date: 13 Oct 92 20:21:08 GMT
Distribution: usa
Organization: Rutgers Univ., New Brunswick, N.J.

UG... yes,  it is ATDT...

I've been known to blunder...thanks.
-- 
Rob Cermak			        EMAIL : cermak@gandalf.rutgers.edu
Programmer NJ Climate Center &		USMAIL: Rutgers University
Prog/Tech Rutgers Meteorology-COOK              Department of Meteorology
FAX             :908 932-7922			Cook College  PO BOX 231
Meteorology Dept:908 932-9387                   New Brunswick NJ 08903-0231
From: ajbennett@miavx1.acs.muohio.edu (Andrew Bennett)
Newsgroups: alt.lang.basic
Subject: Delay Timing in QB 4.5
Date: 16 Oct 92 16:35:38 GMT
Organization: Spandex Admirers Intl.

Sorry for not cross-posting this with comp.sys.ibm.pc.programmer.  I
just found out about the existence of alt.lang.basic...

I'm looking to do some pretty precise timing in a QB 4.5 program.
Nothing very fancy.

I have the Probas 5.0 libraries installed.  However, the routine called
DELAYV(microsecs) doesn't seem to work at all on an IBM PS/2 model 50.

So, I started looking, and found TIMING2.ZIP available via anonymous
ftp from wuarchive.wustl.edu in the mirrors/msdos/qbasic directory.
However, it seems that this was created under QB 3.0.  My attempts to
get it to work failed.

Does anybody know if TIMING2 has been updated for QB 4.5?
Or how to do delay routines (milliseconds would be perfect) easily?

Help!


Much thanks!


Andrew
-- 
---------------------------------------------------------------------------
        Andrew Bennett         (ajbennett@miavx1.acs.muohio.edu) 
        Oxford, Ohio           (abennett@apsvax.aps.muohio.edu) 
---------------------------------------------------------------------------
  Hot tune: Niko's "Oh Yeah", from the Sonic compilation _Killer Techno_
From: cos@chaos.cs.brandeis.edu (Ofer Inbar)
Newsgroups: alt.lang.basic
Subject: Re: Please Help
Date: 8 Oct 92 21:09:30 GMT
Organization: Brandeis University

kingsley@hpwrce.mayfield.hp.com (Kingsley Morse) writes:

>1.) Do you think equal rights for men and women is generally a good idea?

A loaded question.  What does it mean?  Way too vague for most people
to answer.  For example, do you mean that men should have the right to
use the womens' bathroom?  Or that they *should* use the womens'
bathroom?  Or does that not apply here, and why not?

>2.) Are you pro choice?

Seems a bit oversimplified, but I guess it can be answered at least.

>3.) Are you in favor of adoption?

Here's another totally vague question.

>4.) Do you think men should be allowed to legally terminate their parental
>rights and responsibilities before fetal viability?

And another.

>5.) What sex are you?
>6.) How old are you?
>7.) What religion are you?
>8.) What political party are you affiliated with?
>9.) How many years of education have you completed?

Well, at least these can be answered.  Although, lumping all
non-Demopublicans into one group, and all non-Judeo/Christians into
one group, etc., also seems to be an oversimplification.

Overall, one of the most flawed surveys I have ever encountered.
Which leaves one final question... what connection does any of this
have with BASIC?  What's it doing on alt.lang.basic?  Was this the
mistake of a clueless beginner who never read news.announce.newusers,
or the inconsiderate act of someone who knows better?

Now, where does this thread belong, anyway?

ObBASIC: Hey, I just posted another version of the FAQ, I deserve a
chance to spew off topic once in a while, OK?  :-)  :-)  :-)  :-)

  --  Cos (Ofer Inbar)  --  cos@chaos.cs.brandeis.edu
  --  WBRS (BRiS)  --  WBRS@binah.cc.brandeis.edu  WBRS@brandeis.bitnet
Broken Newsreader (TM): a newsreader which lacks certain features that my
    newsreader has, if said features would defuse my opponents' argument.
Newsgroups: alt.lang.basic
From: dsouza@fraser.sfu.ca (Keith D'Souza)
Subject: Tables in VBASIC ?
Organization: Simon Fraser University, Burnaby, B.C., Canada
Distribution: World
Date: Sat, 10 Oct 1992 18:14:38 GMT

Hi!

I would appreciate some advice on creating scrollable tables in Visual Basic.
I am using the VBASIC 1.0 version for WINDOWS.

The quicker and dirtier the method the better

Thx!


Keith
Newsgroups: alt.lang.basic
From: chipd@cwis.unomaha.edu (David W. Hartranft)
Subject: Re: Visual Basic, how to copy files?
Organization: University of Nebraska at Omaha
Date: Fri, 9 Oct 1992 20:08:14 GMT



         Dave

Newsgroups: alt.lang.basic
From: robert@ireq.hydro.qc.ca (Robert Meunier)
Subject: Re: Passing arguments to Procedures
Reply-To: robert@ireq.hydro.qc.ca
Organization: Hydro-Quebec (IREQ)
Date: Wed, 14 Oct 1992 17:15:34 GMT

In article BBK@ireq.hydro.qc.ca, I writes:
>
>	I would say that the only "GOTCHAS" is to always know if
>a variable may be modified inside a procedure.
>
>
>	for i=1 to 100
>		call x(i)
>	next i
>
>	end
>
>
>	Sub x(no)
>		x=200
of course
		no=200
>	end sub
>

	Sorry for that mistake


---
Robert Meunier                     Institut de Recherche d'Hydro-Quebec
Ingenieur                          1800 Montee Ste-Julie, Varennes
Internet: robert@ireq.hydro.qc.ca  Qc, Canada, J3X 1S1 
maintainer: BASIC mailing list request to basic-request@ireq.hydro.qc.ca

From: kingsley@hpwrce.mayfield.hp.com (Kingsley Morse)
Date: Wed, 7 Oct 1992 23:34:33 GMT
Subject: Please Help
Organization: HP Western Response Center
Newsgroups: alt.lang.basic

              Please answer these 9 questions and return.

1.) Do you think equal rights for men and women is generally a good idea?
Yes                  [ ]
Sometimes            [ ]
No                   [ ]
Haven't heard enough [ ]
Other                [ ]

2.) Are you pro choice?
Yes                  [ ]
Sometimes            [ ]
No                   [ ]
Haven't heard enough [ ]
Other                [ ]

3.) Are you in favor of adoption?
Yes                  [ ]
Sometimes            [ ]
No                   [ ]
Haven't heard enough [ ]
Other                [ ]

4.) Do you think men should be allowed to legally terminate their parental
rights and responsibilities before fetal viability?
Yes                  [ ]
Sometimes            [ ]
No                   [ ]
Haven't heard enough [ ]
Other                [ ]

5.) What sex are you?
Male               [ ]
Female             [ ]

6.) How old are you?
Under 18           [ ]
19 to 65           [ ]
Over 65            [ ]

7.) What religion are you?
Protestant         [ ]
Catholic           [ ]
Jewish             [ ]
Other              [ ]

8.) What political party are you affiliated with?
Democratic         [ ]
Republican         [ ]
Other              [ ]

9.) How many years of education have you completed?
Grade School       [ ]
High School        [ ]
College            [ ]
More               [ ]
Newsgroups: alt.lang.basic
From: stevepo@microsoft.com (Steven Podradchik)
Subject: Re: pds 7.1 and vb for do
Date: 09 Oct 92 04:33:09 GMT
Organization: Microsoft Corporation
Distribution: alt

>SP>6.  VB/DOS, like VB/Win, uses Far Strings only.  The vast majority of all
>SP>commercial addon packages already use Far Strings so this should be no
>SP>problem for most people.  FWI -- Far Strings allow VB/DOS to use all the
>SP>DOS memory your machine has available, near strings are limited to 64K
>SP>of total string space.  Far strings have also been highly speed tuned for
>SP>real-world code so, in most real (as opposed to contrived benchmarks)
>SP>apps, Far strings are at least as fast as near strings.
>
>I can't argue with most of what you've said here, and I have no desire to
>bash VBDOS before I've had time to try it out, but this seems a bit
>misleading to me.  I have used nothing but far strings for some time, even
>to the extent of storing "literals" in a file and reading them into far
>strings to keep them out of DGROUP, and I don't get anywhere _near_ my
>full memory capacity.  Each far string, unless you have changed this in
>VBDOS, has a DGROUP-based handle.  Therefore, you are _still_ limited
>by DGROUP even using all far strings.  This may be unavoidable, but people
>need to be told.  It is frustrating to hit the DGROUP celeing, check your
>far string space, and find you have over 100k left.  It is very _rare_ to
>be able to use your full far memory for far strings.  One way to do it is
>to use really long strings instead of a lot of short ones.

You are, technically, correct.  However, if you're really running out of
far string handles in COMPILED .exe files, I'd be shocked.  I've never
heard of anyone using that much string space.  The amount of dgroup space
used by a far string handle is microscopic.

Thanks, Steve
From: grtorlba@sumax.seattleu.edu (George Torralba)
Newsgroups: alt.lang.basic
Subject: Re: Hex$ adds a Carriage Return?
Date: 15 Oct 92 07:39:41 GMT
Organization: Seattle University, Seattle WA

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

Newsgroups: alt.lang.basic
From: jimrutt@netcom.com (Jim Rutt)
Subject: Re: VBDOS a Disappointment to me
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 7 Oct 1992 20:50:14 GMT

Anyone that wants to take away my VB/DOS better have a big gun!!!
I was in the design stages of a major new project that was going to
be done first in VB/WIN then subsetted back to PDS.  Amasingly,
for once in life VB/DOS appeared at the right time.  It looks like
98% of the code can be identical - saving  at least 3 man months
of very painful retrofitting to PDS.  Certainly worth a tad more
than $199 - even at what we pay programmers!

I fell in love with VB over the summer - mostly hacking out multi-media
stuff for my 4 year old daughter.

I look forward to never using anything else ever again!


Newsgroups: alt.lang.basic