Mot-clés AutoIt


With...EndWith

Facilite l'accès aux propriétés et méthodes des variables de type Objet.

With <expression>
    instructions
    ...
EndWith

Paramètre

expression Doit être une expression de type objet

Remarque

Les instructions With...EndWith peuvent être imbriquées.

En relation

For...In...Next

Exemple

Local $oExcel = ObjCreate("Excel.Application")
$oExcel.visible = 1
$oExcel.workbooks.add

With $oExcel.activesheet
    .cells(2, 2).value = 1
    .range("A1:B2").clear
EndWith

$oExcel.quit