OK I figured it out. Don't know why it even compiled the other way. But this is more what the method call should look like.
Query.FieldDBType(QueryStyles.FieldAsString('disp_field_i'))=otClob
For size it shoudl be
Query.FieldSize('field_name')
Thanks anyway. I knew if I posted a message...
Hello,
I am trying to do something like the following.
if Query.Field('field_name').FieldType=otClob
I have also tried
Query.Field('field_name').FieldDBType=otClob
Of course it is more complicated than that.. it really looks like:
Query.Field.(otherQuery.field('something')).FieldType (or...
I figured it out. With the web application I cannot access the TOracleQuery object directly. It is passed to another object.
Cannot do
Mainmodule.Query.Clear;
Have to do
passsedqueryobjectname.Querynewname.Clear;
Both will compile -- so it is hard to find the error.
This may make some...
I am writing a web application in Delphi 7 Pro. I use the DOA TOracleQuery object called Query to log the user on -- that works fine.
Later in my code I do the following (similar to the logon query).
Query.Clear;
Query.SQL.Add(sqlstr);
Query.Execute;
I get an exception on the Query.Clear...