Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show cursor
Message
De
18/02/2005 10:40:27
 
 
À
18/02/2005 09:34:23
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Titre:
Divers
Thread ID:
00987714
Message ID:
00988336
Vues:
27
Randy,

Great idea-starter post, Randy. Many people forget (or have never realized) that TEXT TO and TEXTMERGE() (or TEXT TO with the TEXTMERGE clause) can be great html-building tools.

>It's pretty easy to do this yourself. The basic idea is to use control names that include the PK of the record as a suffix. So say your table had one text field called TITLE and one integer PK. In a SCAN loop, you could write something like:
>
>TEXT TO lcRow NOSHOW PRETEXT 3
><tr>
>  <td><input type="text" name="title<<PK>>" value="<<TITLE>>"></td>
></tr>
>ENDTEXT
>* later...
>SCAN
>  Response.Write(TEXTMERGE(m.lcRow))
>ENDSCAN
>
>Similar processing on the request side. Easy to generalize this to a class, or whatever.
>
>-- Randy
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform