I stumbled today on a well know error: 'Argument is incompatible with the required type.'
CustTable_Blocked.text(_MyTable.Blocked);
Please, help me.
Thank You.
*This post is locked for comments
Hi Nikolaos,
Thank you so much for your reply
I tried to enter the next instruction
CustTable_Blocked.selection(_MyTable.Blocked); for comobox type
and DataSourceCustTable_CreditMax.realValue(_MyTable.CreditMax); for real type
It's an enum and you can't assign an enum value to a method that expects a string as an argument.
But why are you trying to assign this value to a form control, instead of the underlying table? Only if your form control is not bound to a table field, you should assign values to the control. Otherwise, assign the value to the table field directly:
Then you could just have:
CustTable.Blocked = _MyTable.Blocked;
CustTable_ds.refresh();
CustTable_ds.research(true);
This applies to all your other fields as well.
If your form control is not bound to a table field, use:
CustTable_Blocked.selection(_MyTable.Blocked);
Hi BrandonSA
it's not a boolean value but it's combox that I have to choose a value
Hi
I'm guessing that CustTable_Blocked is a control on a form. The text property of that control takes a string argement. You're trying to pass _MyTable.Blocked as an argument. If _MyTable.Blocked is a string, this will work fine, but if it isn't, you'll get an error. I'm guessing _MyTable.Blocked is a boolean/NoYes value, in which case you'll need to cast the value or something like that. But what ever is going on, what you're passing the text property of the CustTable_Blocked control isn't a string, which means it's an incompatible argument.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 4
Guy Terry 2 Moderator
Nayyar Siddiqi 2