Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace Value
Message
From
23/09/2005 08:25:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/09/2005 06:12:48
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052315
Message ID:
01052332
Views:
6
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform