Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace Value
Message
De
23/09/2005 08:25:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/09/2005 06:12:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01052315
Message ID:
01052332
Vues:
7
You can use the REPLACE command with some condition.

If you have very many equivalences, you may need a table that lists the desired conversions, and use SET RELATION. You can REPLACE on a field in the other table.

>Dear Sir,
>
>Table1 has two numeric type fields having data as follows
>
>1-0
>2-1
>3-2
>4-3
>5-1
>6-2
>7-4
>8-1
>9-2
>
>For Treeview control, I want to replace the data of second field as follows
>
>1-0
>2-1
>3-2
>4-1
>5-4
>6-4
>7-1
>8-7
>9-7
>
>Please help
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform