How about this: PB$(1)=LEFT$(PB$(1),3) + LEFT$(D$,5) + RIGHT$(PB$(1),LEN(PB$(1))-9)
Many BASICs did not have this form of MID$, so I don't think it necessarily makes it weak... If you play with BASIC on different computers you'll find many subtle differences... m ----- Original Message ----- From: "NEC" <[email protected]> To: <[email protected]> Sent: Thursday, June 15, 2017 4:24 PM Subject: Re: [M100] Translating BASIC code from 100 to NEC. > Thank you Kurt. > Ok, I'll take a look deeper at your link. > Honestly I had thought it was simpler. > First of all I find it difficult to exploit the informations provided in your > link. > I tried to use the line you wrote: > > PB$(1)=LEFT$(PB$(1),3) + LEFT$(D$,5) + RIGHT$(PB$,LEN(PB$)-9) > > Sadly it doesn't work, an error message is issued, this: > > ?FC Error > > I wonder why NEC chose that weird way for his laptop making its BASIC weak > compared with its direct antagonists Tandy and Olivetti. > Such a shame, really a hard life for guys that want to program on NEC. > I had always believed that 8201A was technically more advanced both as > software and as hardware compared Tandy and Olivetti, actually I was totally > wrong. > > Peppino
