Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - How do I change a MEMO field to a CHARACTER fiel
Message
De
14/05/1997 22:54:19
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
14/05/1997 09:54:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032148
Message ID:
00032363
Vues:
35
>I have a table and I need to transfer the memo fields to character
>base fields. I do not want to loose any information.
>How do I change a MEMO field to a CHARACTER field?
The only way to assure of no data loss would be to create a child dbf with multiple records. I would do something like...

create a dbf with an id field and a char 80 field
set memowidth to 80
select olddbf
scan
store memlines(olddbf.memo) to linecount
store id to m.id
for i=1 to linecount
store mline(olddbf.memo,i) to m.charfield
insert into newdbf from memvar
endfor
endscan
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform