Mahmoud Nabil
22-06-2024, 04:53 PM
الكود دا بيبحث في ملف Gre.txt عن النص Lincs ولو موجود بيطلع رسالة انو موجود ولو مش موجود بيطلع رسالة انه لم يتم العثور عليه
ازاي نطور الكود ونعدل علي الكود بحيث عند ايجاد النص Lincs يتم استدعاء رقم السطر الي اتوجد فيه مع امكانية لاستدعاء السطر كامل
This code searches the Gre.txt file for the text Lincs, and if it exists, it displays a message that it exists, and if it does not exist, it displays a message that it was not found.
How do we develop the code and modify the code so that when the text is found in Lincs, the line number in which it is found is called, with the possibility of recalling the entire line?
x = TextFile.ReadToString("AutoPlay\\Docs\\Gre.txt");
x2 = "Lincs"
if (String.Find(x, x2 , 1, false) ~= -1) then
Dialog.Message("Notice", "It was found", MB_OK);
else
Dialog.Message("Notice", "Not found", MB_OK);
end
ازاي نطور الكود ونعدل علي الكود بحيث عند ايجاد النص Lincs يتم استدعاء رقم السطر الي اتوجد فيه مع امكانية لاستدعاء السطر كامل
This code searches the Gre.txt file for the text Lincs, and if it exists, it displays a message that it exists, and if it does not exist, it displays a message that it was not found.
How do we develop the code and modify the code so that when the text is found in Lincs, the line number in which it is found is called, with the possibility of recalling the entire line?
x = TextFile.ReadToString("AutoPlay\\Docs\\Gre.txt");
x2 = "Lincs"
if (String.Find(x, x2 , 1, false) ~= -1) then
Dialog.Message("Notice", "It was found", MB_OK);
else
Dialog.Message("Notice", "Not found", MB_OK);
end