How can I change a FOR EACH loop to a DO WHILE loop?
I have this code...
PHP Code:
<%
For Each objFile In objFolder.Files
If IsImgNotRegistered(objFile.Name)= true then%>
<tr>
<td>
<%= objFile.Name%>
</td>
</tr>
<%
End if
Next
%>
Actually this code is part of a file, used to fetch Image(.jpeg)
file and check wether it is registered or not.
The 'objFile' is the Image file
and objFolder.Files is the Folder.
How can I change it to a DO WHILE loop?
Thanks.
__________________
$id ="waxxer";
$id = str_replace('x', 'l', $id);
echo $id;
echo " and Marj";
|