Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursion, how best to code ?
Message
 
À
24/01/2001 11:33:30
Tan Aik Jin
Aranea WebLab Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467922
Message ID:
00468024
Vues:
22
Tan,

I would approach this problem from another direction.

Keep the one ID to memo as it is, and change the way they reference the ID.
Allow them to put several ID's in the request, and then parse through that list with a substring search.

For example:

ID Memo
01 This is a clause for how to make payment
02 This is a clause for where to deliver
03 This is a different clause for where to deliver
04 This is a clause for how to package
and so on

Then call the clauses by letting the user fill in a clause variable such as having ID's 01,03,04.

Then a series of if's or a dh loop
If "01" $ clause
* add the stuff from memo for 01
EndIf
If "02" $ clause
* add the stuff from memo for 02
EndIf

and so on...

HTH
Ron Seidl
VFP novice
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform