79750204

Date: 2025-08-29 11:18:33
Score: 0.5
Natty:
Report link
Public Function FileTxtWr(ByVal sFile As String, _
                          ByRef sRow() As String) As Boolean

Dim sUTF As String
Dim iChn As Integer
Dim i As Integer

    sUTF = Chr$(239) & Chr$(187) & Chr$(191)
    sRow(1) = sUTF & sRow(1)
    iChn = FreeFile
On Local Error GoTo EH
    Open sFile For Output Shared As iChn
On Local Error GoTo 0
    For i = 1 To UBound(sRow)
        Print #iChn, sRow(i)
    Next i
    Close iChn
    FileTxtWr = True
Exit Function
    
EH:
    FileTxtWr = False
    
End Function
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Pezzati Carlo Maria