Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matching records to array
Message
From
20/09/2001 00:57:49
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Matching records to array
Miscellaneous
Thread ID:
00558604
Message ID:
00558604
Views:
47
hi everyone,

dimension MyArray[1,2]
MyArray[1,1]="0001"
MyArray[2,1]="0003"
MyArray[3,1]="0005"
MyArray[4,1]="0007"

MyTable:
Code Name
0001 A
0002 B
0003 C
0004 D
0005 E
0006 F
0007 G
0008 H
0009 I

are there any simple command to save the Name field from MyTable to MyArray with matched code? The result should be:
MyArray[1,2]="A"
MyArray[2,2]="C"
MyArray[3,2]="E"
MyArray[4,2]="G"

Tanks in advance!
Jimi
error(503): file structure failure, signature file corrupted.
Next
Reply
Map
View

Click here to load this message in the networking platform