DB » Api
  
getname
  
Description
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | STRING | 
      컨트롤의 이름 | 
    
  
Example
function btnGetAllControlName_on_mouseup()
{
	var arrControl = new Array();
	arrControl = getAllControlInscreen(screen);
	if(arrControl.length <= 0) {
		return;
	}
	//가져온 컨트롤들의 이름을 콘솔창에 출력
	for(var nIndex = 0; nIndex < arrControl.length; nIndex++) {
		factory.consoleprint("CONTROL[" + nIndex + "]: " + arrControl[nIndex].getname());
	}
}
// 화면안의 모든 컨트롤의 배열로 가져온다.
function getAllControlInscreen(ScreenSource)
{
	if(ScreenSource == null) {
		return false;
	}
	var nControlCount = 0;
	nControlCount = ScreenSource.getcontrolcount();
	var arrControl = new Array();
	var instControl = ScreenSource.getinstancefirst();
	if(factory.isobject(instControl)) {
		arrControl.push(instControl);
		for(var nControlIdx = 0; nControlIdx < nControlCount; nControlIdx++)
		{
			instControl = ScreenSource.getinstancenext(instControl);
			if(factory.isobject(instControl)) {
				arrControl.push(instControl);
			} else {
				continue;
			}
		}
	}
	return arrControl;
}
  
See Also
setname
  
Viewer Ver.
9.1.1.1
  
Update Date
 20140218