Fonksiyon Ile Veri çekme
#1
Merhaba,

txtmesaj isimli bir textbox var. bu textbox'a sürekli olarak comporttan;
ST,SG,   194.5, g
ST,SG,   194.5, g
ST,SG,   194.5, g
ST,SG,   194.5, g


Sürekli veri geliyor. Bir fonksiyon yardımı ile başka Textbox'a 194,5 değerini almak istiyorum. Yardımcı olurmusunuz.

Teşekkürler,



  Alıntı
Bu mesajı beğenenler:
#2
Visual Basic
  1.     Dim kelime As String
  2.     Dim i As Integer, j As Integer
  3.     Dim arr, son As Integer
  4.     
  5.     kelime = txtmesaj.Value
  6.     
  7.      ReDim arr(1 To Len(kelime))
  8.     
  9.     For i = LBound(arr) To UBound(arr)
  10.         arr(i) = Mid(kelime, i, 1)
  11.     Next
  12.     
  13.     
  14.     For i = 1 To Len(kelime)
  15.          If IsNumeric(arr(i)) Then
  16.             ilk = i
  17.             Exit For
  18.         End If
  19.     Next
  20.     
  21.     
  22.     For j = UBound(arr) To LBound(arr) Step -1
  23.        If IsNumeric(arr(j)) Then
  24.             son = j
  25.             Exit For
  26.         End If
  27.     Next
  28.     
  29.     MsgBox Mid(kelime, ilk, (son - ilk) + 1)
  30.     kelime = vbNullString
  31.     Erase arr





  Alıntı
Bu mesajı beğenenler:


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Siteden Accese Vb Veri çekme Hakkında sertac75 2 452 26-05-2025, 11:08
Son Mesaj: sertac75
  Altın Sitesinde Veri çekme Hakkında sertac75 2 436 13-05-2025, 09:37
Son Mesaj: sertac75
  Kullanıcıya Göre Tablodan Veri çekme semyross 1 333 20-12-2024, 00:30
Son Mesaj: halily
  [SORGU] Veri çekme toros333 1 299 23-11-2024, 22:32
Son Mesaj: halily
  [SORGU] Sorgu Ifadesi Içindeki Fonksiyon Ifade Içinde Kullanılamaz Hatası Mecnun24 7 661 27-08-2024, 16:53
Son Mesaj: Mecnun24
  Veri çekme toros333 1 319 25-11-2023, 01:26
Son Mesaj: dsezgin
  [FORM] Web Brovser Dan Veri çekme serdem48 4 410 18-10-2023, 15:32
Son Mesaj: serdem48
  [SORGU] Veri çekme toros333 1 447 17-09-2023, 17:33
Son Mesaj: dsezgin

Foruma Git:


Bu konuyu görüntüleyen kullanıcı(lar): 1 Ziyaretçi