Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS source files are double spaced
Message
De
08/10/1997 10:49:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
02/10/1997 11:42:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052874
Message ID:
00053685
Vues:
33
>We are migrating large FoxPro 2.x to FoxPro 5.0a and our problem is the DOS >files are double spaced. The blank lines after lines terminated with a >semicolon throws off the compiler into thinking that the statement ends >with a the blank line. > >Recomended solution is to remove the blank lines. > >Question does the double spacing option on one of the menus also correct >the problem? > >Chad Reeder I'll try to write a quickie here:
#define cr chr(13)
#define lf chr(10)
n=adir(aa, "*.prg")
create cursor mm (m m)
appe blank
for i=1 to n
    appe memo m from (aa(i,1))
    repl m with strt(m, cr+lf+cr+lf, cr+lf)
    copy memo m to (aa(i,1))
endf
You'd better look at the hex dump of at least one of your .prg files to see what combination of cr and lf it has at the end of line, and replace it with cr+lf - guess you'll have to change the second parameter of the strtran() a little. HTH

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform