Jump to content

Tcmb Kurlar Nasıl Çekilir ?


muratboy31
 Share

Recommended Posts

Neden böyle bir hata alıyorum acaba ?

 

14x15wx.jpg

 

Kullandığım kod bu ;

 

HTTP.Download("http://www.tcmb.gov.tr/kurlar/today.html", _TempFolder .. "\\kur.txt", MODE_TEXT, 20, 80, nil, nil, nil)
local kurlar = TextFile.ReadToString( _TempFolder .. "\\kur.txt")

 

function kuralis(input, text, pos, lenght)
 kuralis = String.Find(kurlar, text, 1, false)
 kur = String.Mid(kurlar, kuralis + pos, lenght)
 Input.SetText(input, kur)  
end

function kursatis(input, text, pos, lenght)
 kursatis = String.Find(kurlar, text, 1, false)
 kur = String.Mid(kurlar, kursatis + pos, lenght)
 Input.SetText(input, kur)  
end

kuralis("Input1", "1 ABD DOLARI", 37, 6)
kursatis("Input2", "1 ABD DOLARI", 52, 6)

kuralis("Input3", "1 EURO", 37, 6)
kursatis("Input4", "1 EURO", 52, 6)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...