Ciao.

Ho la seguente sub:

codice:
sub listaGuasti(cn, byRef listaGuastiOutput)

    SQL = "SELECT "
    SQL = SQL & " COUNT(*) AS tot "
    SQL = SQL & " FROM "
    SQL = SQL & " tbl "
    SQL = SQL & " GROUP BY DATA "
    SQL = SQL & " ORDER BY DATA asc"  
                
	set rs = createObject("ADODB.Recordset")
	rs.open SQL, cn

if not rs.eof then
        If CINT(rs("tot")) = 4 then	
                strVariabile = 0           		
                listaGuastiOutput = rs.getrows()
           else
                strVariabile = 1
                listaGuastiOutput = rs.getrows()		               
        end if
end if

	rs.close
	set rs = nothing
	
end sub
Perchè se in qualunque posizione della pagina asp che contiene la sub, scrivo:

codice:
response.write strVariabile
La variabile sembra vuota cioè non valorizzata?

Grazie