そのため、配列を a に渡す必要がありますglobal procedure
が、いつものように再定義する必要があります。これはちょっと初心者の質問だと思いますが、配列をプロシージャとして渡すことはできますか? そうでない場合は、グローバルにしてプロシージャに挿入できますか。
$selectedFace = `ls -selection` ;
global proc crTestScripts($selectedFace) {
print ("OMG aren't lists of things awesome?!" + $selectedFace) ;
}
また
$selectedFace = `ls -selection` ;
global array? $selectedFace ;
global proc crTestScripts() {
global array? $selectedFace ;
print ("OMG aren't lists of things awesome?!" + $selectedFace) ;
}
この文字列を渡していますが、まだこのエラーが発生します。
Error: Wrong number of arguments on call to applyCurrentType
コードのサンプルを次に示します。
string $selectedFace[] = `ls -sl` ;
global proc applyCurrentType (string $selectedFace[]) {
print("Apply Current Type button clicked\n") ;
global int $applyCurrentType ;
$applyCurrentType = 1 ;
select -cl ;
select $selectedFace ;
crTestScripts ;
}