Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate
Message
 
 
À
29/06/2003 07:56:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00805082
Message ID:
00805161
Vues:
22
Chaim,

>Can you give me example from the life?

generic code to convert a cursor to an HTML table:
local laFields[1], i, n, luCell

n = afields( laFields )

scan
   \<tr>
   for i = 1 to n
      \<td
      luCell = evaluate( laFields[i,1] )
      if ( type( "luCell" ) = 'N' )
         \\ align=right
      endif
      \\>
      if ( ! empty( luCell ) )
         \\<<alltrim( transform( luCell ) )>>
      else
         \\&nbsp;
      endif
      \\</td>
   endfor
   \</tr>
endscan
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform