Virgüllü Sayılarda Virgül Öncesi ve Sonrası Ayırma işlemi Son | Dephi Kod Örneği
#1
Delphi
  1. function Split(Input: string; Deliminator: string; Index: integer): string;
  2. begin
  3. if pos(Deliminator,Input) <>0 then
  4. begin
  5. if Index=1 then
  6. Result:=Trim(copy(Input,1,pos(Deliminator,Input)-1))
  7. else
  8. Result:=Trim(copy(Input,pos(Deliminator,Input)+1,255));
  9. end
  10. else
  11. begin
  12. if Index=1 then
  13. Result:=Trim(Input)
  14. else
  15. Result:='';
  16. end;
  17. end;
  18.  
  19.  
  20. a.text:=Split(GTOPLAM.Text, ',', 1);
  21. b.text:=Split(GTOPLAM.Text, ',', 2);



Alıntıdır...



  Alıntı
Bu mesajı beğenenler:


Benzer Konular...
Konu: Yazar Cevaplar: Gösterim: Son Mesaj
  Nokta Yerine Virgül Girilmesini Sağlamak şahrapçi 0 4.078 21-03-2009, 23:07
Son Mesaj: şahrapçi
  Farenin Tuş Ayarını Okumak | Delphi Kod Örneği şahrapçi 0 2.463 20-03-2009, 19:36
Son Mesaj: şahrapçi

Foruma Git:


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