Example datanavigation rsp

From Lianjapedia
Revision as of 07:16, 2 September 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Name

example.rsp

Description

Code

<%@ Language=VFP %>
<html>
<body>
<%
	// Open the database
	open database southwind
	? "<br>"
 
	// Use the table
	use customers
 
	// Display the data in a table
	? "<table>"
	? "<tr>"
	for i = 1 to fcount()
		? "<td>" + field(i) + "</td>"
	next
	? "</tr>"
	scan
		? "<tr valign='top'>"
		for i = 1 to fcount()
			? "<td>"
			? &(field(i))
			? "</td>"	
		next
		? "</tr>"
	endscan
	use
	close databases
? "</table>"
%>
</body>
</html>