Skip to main content

AccessTr.neT


İnstr Fonksiyonu

İnstr Fonksiyonu

#11
sn. @berduş çözümü güzel çalışıyor
Private Sub degis()
    Dim intSira As Integer, txtMtn As String, txtBul As String, txtDgs As String
   
    txtMtn = "MUVAFFAKİYETSİZLEŞTİRİCİLEŞTİRİVEREMEYEBİLECEKLERİMİZDENMİŞSİNİZCESİNESİNİZ"
    intSira = 8
    txtBul = "İ"
    txtDgs = " $€£ "
   
    MsgBox degisHrf(txtMtn, intSira, txtBul, txtDgs)
   
End Sub

Function degisHrf(txtMtn As String, intSira As Integer, txtBul As String, txtDgs As String) As String
On Error GoTo Err_hata
    Dim result As String

    Dim x, y As Integer

    y = 0
   
    For x = 1 To intSira
        y = InStr(y + 1, txtMtn, txtBul)
    Next x
   
    result = Left(txtMtn, y - 1) & txtDgs & Mid(txtMtn, y + Len(txtBul))

Exit_kod:
    degisHrf = result
    Exit Function

Err_hata:
    result = txtMtn
    MsgBox Err.Description
    Resume Exit_kod
End Function
@benbendedeilem
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 14:03
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 14:09
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 14:21
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 14:29
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 14:38
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 14:44
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 14:45
RE: İnstr Fonksiyonu - Yazar: berduş - 22/04/2020, 14:47
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 14:49
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 15:01
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 15:12
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 15:33
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 15:58
RE: İnstr Fonksiyonu - Yazar: berduş - 22/04/2020, 15:55
RE: İnstr Fonksiyonu - Yazar: berduş - 22/04/2020, 16:07
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 16:09
RE: İnstr Fonksiyonu - Yazar: berduş - 22/04/2020, 16:17
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 16:34
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 17:29
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 17:56
RE: İnstr Fonksiyonu - Yazar: feraz - 22/04/2020, 19:18
RE: İnstr Fonksiyonu - Yazar: berduş - 22/04/2020, 18:04
RE: İnstr Fonksiyonu - Yazar: accessman - 22/04/2020, 18:14
Re: İnstr Fonksiyonu - Yazar: POWER - 22/04/2020, 20:33
Task