Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create this array
Message
From
26/04/2002 11:55:58
 
 
To
25/04/2002 16:52:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00649349
Message ID:
00649653
Views:
11
>Hello all
>
>How to create this in vfp
>
>
>  R = new AssocArray()	&& The subscripts are character strings representing
>  R[ '68']='SERVICE'    && allowable record lengths for incoming text files.
>  R['124']='PAYMENT'
>  R['203']='DENIED'	&& 203 or 204 acceptable
>  R['204']='DENIED'	&& rec lens for Denied file
>  R['246']='ASSESS'
>  R['281']='REGISTRY'
>  R['289']='CHANGE'
>
>

The behavior you describe is that of as collection rather than an array; unless you want to use a COm component like WSH, your best bet would be to implement this as a two-dimensional array, and use VFP's native array handling to search/extend the array.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform