hakanight Posted January 2, 2016 Share Posted January 2, 2016 (edited) Merhaba Benim projem şöyle ; if fileread("klasor.hakanight") < 1 Then filedelete("klasor.hakanight") filewrite("klasor.hakanight",0) EndIf Local $k[1] $form1 = GUICreate("Window",700,600) if fileread("klasor.hakanight") = 0 Then Else filedelete("now.hakanight") ; filewrite("now.hakanight",1) $now = 1 $h = 20 For $now = 1 to fileread("klasor.hakanight") $k[fileread("now.hakanight")] = GUIctrlcreatelabel("KLASOR",20,$h) $h = $h + 30 msgbox(0,"",fileread("now.hakanight")) $now = fileread("now.hakanight") filedelete("now.hakanight") ; filewrite("now.hakanight",$now + 1) Next EndIf Local $idContextmenu = GUICtrlCreateContextMenu() Local $idNewsubmenu = GUICtrlCreateMenu("Yeni", $idContextmenu) Local $new = GUICtrlCreateMenuItem("Yeni Klasör", $idNewsubmenu) GUICtrlCreateMenuItem("", $idContextmenu) GUIsetstate() While 1 Switch GUIgetmsg() case -3 Exit Case $new EndSwitch WEnd Kullanıcı istediği kadar klasör oluşturabilecek ve hepsinin farklı farklı id si olacak. ve o id ye basınca farklı bir işlem görecek. Bunu nasıl yapabilirim ? $a[$b] şeklinde yapsam hata veriyor. Edited January 2, 2016 by hakanight Quote Link to comment Share on other sites More sharing options...
blackman12 Posted January 3, 2016 Share Posted January 3, 2016 tam olarak mevzuyu anlamadım ama useridsini değişken olarak kullanmak işini görmüyor mu? Quote Link to comment Share on other sites More sharing options...
hakanight Posted January 3, 2016 Author Share Posted January 3, 2016 tam olarak mevzuyu anlamadım ama useridsini değişken olarak kullanmak işini görmüyor mu? Mesela not alma programı diyelim. Kendisi bir not eklicek programıma. Sonsuza kadar ekliyebilcek mesela. Daha sonra eklediği herhangi bir notu silmek istiycek. Mesela 100. not. Onu silme butonuna basınca program 100. notu silmek istediğini nerden anlıcak. Umarım anlatabilmişimdir. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.