faustf Posted January 31, 2017 Share Posted January 31, 2017 hi guys i have this function Func _Indietro_foto($input_readBK, $listJPGreload) Local $path_jpg = GUICtrlRead($input_readBK) ;MsgBox(0,'3178',$path_jpg) Local $aJpg_repath = StringSplit($path_jpg, "\") Local $aPath[1][($aJpg_repath[0]) * 2] Local $l = 0 For $y = 1 To (UBound($aJpg_repath) - 1) - 1 $aPath[0][$l] = $aJpg_repath[$y] $l += 1 $aPath[0][$l] = "\" $l += 1 Next ;_ArrayDisplay($aPath) Local $sPath_back = _ArrayToString($aPath, "") GUICtrlSetData($input_readBK, $sPath_back) ;_FileJPG_reload() Select Case $iGCTRL_ClickNewItemB56 = 1 GUICtrlDelete($SITIWEB_NewItem_List2) $SITIWEB_NewItem_List2 = _ListView_OK("", 552, 166, 377, 266, "Descrizione_370") Case $CTRL_Clicked_MultyeBayB56 = 1 GUICtrlDelete($SITIWEB_NIMLTY_eBay_List2) $SITIWEB_NIMLTY_eBay_List2 = _ListView_OK("", 799, 146, 377, 279, "Descrizione_370") EndSelect _FileJPG_reload($input_readBK, $listJPGreload) _Disabilita_X_Condurre_3("Enable") EndFunc ;==>_Indietro_foto when i call it like _Indietro_foto($SITIWEB_NewItem_Input5, $SITIWEB_NewItem_List2) it tell me error "C:\_GESTIONALE_NEW\include\GUI_Configure.au3" (1571) : ==> Variable used without being declared.: Local $path_jpg = GUICtrlRead($input_readBK) Local $path_jpg = GUICtrlRead(^ ERROR why ??? Link to comment Share on other sites More sharing options...
jguinch Posted January 31, 2017 Share Posted January 31, 2017 (edited) Because you probably declared it into another function. You have to declare it as a global variable (at the beginning) Edited January 31, 2017 by jguinch faustf 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
faustf Posted January 31, 2017 Author Share Posted January 31, 2017 the variable , $SITIWEB_NewItem_Input5, $SITIWEB_NewItem_List2 is global and $input_readBK is unique o_O , never declared before Link to comment Share on other sites More sharing options...
jguinch Posted January 31, 2017 Share Posted January 31, 2017 Can you show us the part of code where _Indietro_foto is called ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
faustf Posted January 31, 2017 Author Share Posted January 31, 2017 (edited) yea is there a problem i call directly a function without a variable , Sorrry some time i am very slowwww Edited January 31, 2017 by faustf Link to comment Share on other sites More sharing options...
jguinch Posted January 31, 2017 Share Posted January 31, 2017 I think you don't take enough time to search by yourself. You take the easy way by asking here, so you learn slowly. We learn from our mistakes. Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
faustf Posted January 31, 2017 Author Share Posted January 31, 2017 (edited) yes some time is true , the dark side of the force , is very a tentation but not with this time i find many time but my focus were concentrated only in func _ _Indietro_foto and not over . but i promess next time i will try much much more thankz Again Edited January 31, 2017 by faustf Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now