try:
if (
Get-Process iexplore -ea silentlycontinue |
Where-Object {$_.MainWindowTitle -ne ""}
)
Вы можете попробовать с
if (cursor_names.moveToFirst()) {
while ( !cursor_names.isAfterLast() ) {
String name=cursor_names.getString(cursor_names.getColumnIndex("tbl_name"));
cursor_names.moveToNext();
}
}
Alternate
// looping through all rows and adding to list
if (cursor.moveToFirst()) {
do {
// Your work
} while (cursor.moveToNext());
}