Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate
Message
 
 
To
29/06/2003 07:56:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00805082
Message ID:
00805161
Views:
23
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
Previous
Reply
Map
View

Click here to load this message in the networking platform