OT: Analyzing competitors - In this case Real Software

Frank D. Engel, Jr. fde101 at fjrhome.net
Tue Mar 22 13:00:23 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Been a while since I worked in Basic, but iirc, something like this:

i = instr(myString, chr$(13)+chr$(10))
while (i > 0)
   myString = left$(myString, i-1) + chr$(10) + mid$(myString, i+2)
   i = instr(myString, chr$(13)+chr$(10))
wend

It's hardly efficient, and possibly riddled with syntax errors (I'm 
thinking back to QuickBasic actually, though equivalent VB code should 
be similar to this), but I think that would work.

Looks a lot messier than

replace crlf with lf in myString

though, doesn't it?

On Mar 22, 2005, at 12:47 PM, Mark Wieder wrote:

> Aside: I recently had to code a VB equivalent to
>   replace crlf with linefeed in myString
> and it was no fun.

- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCQF037aqtWrR9cZoRAtvUAKCFfgQW322ozFQ16hQ8hWO+w2oMtwCfWanD
IoQ32XX+TuN9qFKKXBz+PLk=
=5lRQ
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list