ADOConnection.Open; IF CREATE(ADORecSet) THEN BEGIN SQLString[1] := 'SELECT DisplayName, Location from dbo.DOCUMENTS_PEOPLE'; OpenMethod := 0; LockMethod := 1; ADORecSet.Open(SQLString[1],ADOConnection,OpenMethod,LockMethod); END; IF NOT ADORecSet.EOF THEN BEGIN IF ADORecSet.BOF THEN; WHILE NOT ADORecSet.EOF DO BEGIN prnName := ADORecSet.DisplayName; ADORecSet.MoveNext; END;and I'd like to print "DisplayName" and "Location" on the report. But prnName := ADORecSet.DisplayName; compiles with an error.
Comments
I've found an answer:
Thanks for any additional pointers anyone may provide.
cheers,
I'm experiencing some trouble with the datatypes. DisplayName is nvarchar(150), and Location is nvarchar(50). When I try to reference them via: I receive the message :
The data type is not supported by C/SIDE. You can access data from any of the following data types: VT_VOID, VT_I2, VT_I4, VT_,R4 VT_R8, VT_CY, VT_DATE, VT_BSTR, and VT_BOOL.
Again, any help greatly appreciated.
cheers,
http://dynamicsuser.net/blogs/waldo/arc ... -side.aspx
I just finished reading the article. But I do not want to create a stored procedure, just read two TEXT variables. Additionally, I don't think the CAST function shouldn't apply here, as the variables I'm trying to extract are just TEXT. I hope I'm not being too thick here on a Monday morning.....
cheers,
Sorry to bring this back up to the top.
I've two challenges with my code that I would appreciate some help with.
This code will not compile. The error is "Type conversion is not possible because 1 of the operators contains an invalid type. Variant <> Integer"
When I comment out the "IF" part of the line above, I can compile. But when I try to run I get the following:
The data type is not supported by C/SIDE. You can access data from any of the following data types: VT_VOID, VT_I2, VT_I4, VT_,R4 VT_R8, VT_CY, VT_DATE, VT_BSTR, and VT_BOOL.
Here is my updated code using the CAST function:
As always, any help greatly appreciated.
cheers,