geeting error while storing decimal values from ADO
abhishekpareek
Member Posts: 150
Hi All,
I am using the ADO connection to get the values for qty to receive and qty to invoice values from sql database.
Please see the lines of code below::
ADOStreamP.Open;
ADOStreamP.WriteText(ADORecSetP.Fields.Item('Qty_ to Receive').Value);
ADOStreamP.Position:= 0;
FieldValueP:= ADOStreamP.ReadText;
ADOStreamP.Close;
EVALUATE(qtytoreciveP,FORMAT(FieldValueP));
It is running successfully by using streams objects but I do not want to use streams.
Without using the stream I am writing the following code :
EVALUATE(qtytoreciveP,FORMAT(ADORecSetP.Fields.Item('Qty_ to Receive').Value));
recpurchline.VALIDATE("Qty. to Receive",qtytoreciveP);
by running the above code it is throwing error.
Error is as follows:
this message for c/al programmers:
this data type is not supported by c/side.you can access data from any of the folloing data types:vT_void,VI_I2,VT_I4,VT_R4,VT_R8,VT_CY,VT_DATE,VT_BSTR and VT_BOOL
It would be great if anybody could give light on the problem.
Regards,
Abhishek
I am using the ADO connection to get the values for qty to receive and qty to invoice values from sql database.
Please see the lines of code below::
ADOStreamP.Open;
ADOStreamP.WriteText(ADORecSetP.Fields.Item('Qty_ to Receive').Value);
ADOStreamP.Position:= 0;
FieldValueP:= ADOStreamP.ReadText;
ADOStreamP.Close;
EVALUATE(qtytoreciveP,FORMAT(FieldValueP));
It is running successfully by using streams objects but I do not want to use streams.
Without using the stream I am writing the following code :
EVALUATE(qtytoreciveP,FORMAT(ADORecSetP.Fields.Item('Qty_ to Receive').Value));
recpurchline.VALIDATE("Qty. to Receive",qtytoreciveP);
by running the above code it is throwing error.
Error is as follows:
this message for c/al programmers:
this data type is not supported by c/side.you can access data from any of the folloing data types:vT_void,VI_I2,VT_I4,VT_R4,VT_R8,VT_CY,VT_DATE,VT_BSTR and VT_BOOL
It would be great if anybody could give light on the problem.
Regards,
Abhishek
0
Comments
-
Do you make it right, it works too!0
-
Thanks for the reply!
I am not accessing the records through select statement.Instaed I am using the recordset and from recordset I am accessing the field qty to receive and qty to invoice from sql table.
I f I am accessing thorugh ADO stream then I am not getting the error but if I am directly assiging the value from recordset to decimal variable in navision I am getting the error.
Regards,
abhishek0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions