Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with string parsing into array
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Database:
Visual FoxPro
Divers
Thread ID:
01647020
Message ID:
01647024
Vues:
67
>>Hi
>>I need to transform a string with content similar to
>>{"ID": "0050", "Action": "Welding"},{"ID": "0040", "Action": "Bending"},{"ID": "0020", "Action": "Laser"}
>>
>>into an array ( two dimensions, 1 for ID and 2 for Action ), In the above case, that would generate:
>>Array[1,1]="0050"
>>Array[1,2]="Welding"
>>Array[2,1]="0040"
>>Array[2,2]="Bending"
>>Array[3,1]="0020"
>>Array[3,2]="Laser"
>>
>>Any ideas how to achieve this?
>>
>>Many thanks
>>Jaime
>
>Try to google: "Parse JSON vfp"

Thanks, qsfoxjson was my ticket. Forgot about them, excellent functions and easy to use.
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform