if Titre <> "" then
Response.write "
<Center>" & Titre & "</Center>
" & vbcrlf
End If
RecordSet.Open sSQL, Connection, 3, 3
if RecordSet.EOF = false then
Response.write "\"
Response.write \"----
\" & vbcrlf
'Création des collones
for each rsfield in recordset.Fields
Response.write \"" & rsfield.Name & ", \" & vbcrlf
next
Response.write \"\" & vbcrlf
'Affichage de chaque ligne
Do while not RecordSet.EOF
Response.write \"----
\" & vbcrlf
i = 0
For each RecordSetItem in RecordSet.Fields
i = i + 1
if i=1 then
Response.write \"" & vbcrlf
else
Response.write ", \" & vbcrlf
end if
if isnull(RecordSetItem) = true then
Texte = \"-\"
else
Texte = RecordSetItem
if isnumeric(RecordSetItem) = true then
if RecordSetItem <> 0 then
Texte = \" \" & Texte & \" \" & vbcrlf
end if
else
Texte = \"\" & Texte & \"\" & vbcrlf
end if
end if
Response.write Texte
Response.write \"</TD>\" & vbcrlf
next