As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
I have the following code in an event handler that keeps producing the error "Datatypes not supported for computational/comparison operation."
IF SEC1 NE '' THEN BEGIN
OrderStk(1).CRS_SECTION = SEC1;
OrderStk(1).QTY = QTY1;ENDBEGIN
SEC1 is defined as A0. I'm just checking to see if there is any data in SEC1, and if so to assign it to a field in a stack. I'm not sure why this isn't allowed.
I know this is the code that is causing the error, because if I remove that code the error goes away.
Any one know why maintain is not allowing this simple comparison?This message has been edited. Last edited by: brjohnson,
Bryan Johnson WebFOCUS 7.7.03 Maintain Win 7 Excel, PDF, HTML
Tested your code, and it ran without any problem. But, as Waz already mentioned, we don't know what the formats of the various fields are. And this may even be caused by something that is also in this event handler, so maybe post your entire handler code?
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
1) In your example you say that QTY is an I11, but in the code you have QTY1. Is this just a typo? 2) What is the format of TheDate and OrderStk(C).ADDDATE ? 3) What is the format of SecCount?
I THOUGHT that maybe the problem was equating a A50V with an A0, but that's not causing me any problems. If you want, zip up the MNT files, MAS files and Other files and send them to: MARK_DERWIN@IBI.COM and I will try to debug here.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003
1) In your example you say that QTY is an I11, but in the code you have QTY1. Is this just a typo? 2) What is the format of TheDate and OrderStk(C).ADDDATE ? 3) What is the format of SecCount?
1) Just a typo. QTY1 is defined as I11. 2) TheDate / A10 OrderStk.ADDDATE / HYYMDs 3) SecCount / I8.This message has been edited. Last edited by: brjohnson,
Bryan Johnson WebFOCUS 7.7.03 Maintain Win 7 Excel, PDF, HTML
I'm going to assume you meant OrderStk.ADDDATE / HYYMDs and not HYMMDs. I still don't see the problem. If I had to guess I would assume it's the AnV format field.
I will be happy to debug here. Just zip up the files and send them to me at Mark_Derwin@ibi.com.
Mark
Posts: 663 | Location: New York | Registered: May 08, 2003