03-27-2008 10:02 AM
03-28-2008 07:37 AM
Hi lewis.may,
If you are executing the line of code you submitted, I cannot imagine DIAdem calling the Find() function instead of running the "Find" method of the record_set object. DIAdem absolutely respects name space arguments and has no trouble calling methods of external objects, such as ADO objects.
Could you provide the relevant code you're running that causes the unexpected behavior?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
03-31-2008 09:13 AM
Hello Brad,
Thanks for your response the code thats giving me trouble is as follows
Set connection = CreateObject("ADODB.Connection")
query = "SELECT " & target_type & " FROM TableExample1 WHERE " & source_type & " = '" & source_code & "' " &_
" UNION SELECT " & target_type & " FROM TableExample2 WHERE " & source_type & " = '" & source_code & "' "
Set record_set = connection.Execute(query)
If Not record_set is Nothing AND NOT record_set.EOF then
record_set.find source_type & " = test"
End If
There are a couple of things worth mentioning
firstly I'm using diadem V 8.10;
secondly the word "find" turns red;
thirdly the error message given is as follows "Arguments are of the wrong type, are out of acceptable range...."
I know there are other ways of creating a record set are these worth trying?
Thanks for your help
Lewis
03-31-2008 10:59 AM
| Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
04-01-2008 09:26 AM