﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3564	With ...EndWith not robust	steve8tch		"Typical code block
$q = some sql query
$f_objOLEDynaset = $f_objOLESession.CreateDynaset($q, 0)
With $f_objOLEDynaset
  If $f_objOLEDynaset.RecordCount Then ; we have some results from the query
    $Fields = $f_objOLEDynaset.Fields.Count ; check the number of field in the results set
    While Not $f_objOLEDynaset.EOF
       ; read values from results set
      $f_objOLEDynaset.MoveNext
    Wend
  EndIF
WithEnd

I run code like this on 1000s of computers. This works for 99.99% of the time - but on some computers - I get the following error.

OIP-04099: Field '' not found
Source: 	Oracle Automation
at Line #: -1	Last DllError: 	0
Help File: 		Context: 	0
.
To fix this error - I need to stop using With ..EndWith and just use the full dot path.

Is this expected ?

Thanks.

Steve
"	Bug	closed		AutoIt	3.3.14.2	None	No Bug		
