PDA

View Full Version : Help me ..



mustafa06
01-26-2008, 06:57 AM
Code : ( İn Button1 )

a = File.DoesExist("C:\\mustafa.txt");
Input.SetText("Input1", a);

İf ı click button1 then ı want to saw my input = mustafa.txt

how ? ;)

longedge
01-26-2008, 07:13 AM
Try -


a = File.DoesExist("C:\\mustafa.txt");
if a then
a_txt = "mustafa.txt"
else
a_txt = "mustafa.txt not found"
end
Input.SetText("Input1", a_txt);

File.DoesExist just returns a boolean i.e. true or false which you can test for.