- John Vanleeuwe
- PowerBuilder
- Tuesday, 26 May 2020 03:58 AM UTC
Hi guys,
Using Appeon 2017 R3.
We are having an importstring fonctionality built in in our software. So our users can copy/paste records from an excel sheet into our software.
At the moment we are having 3 different uploads , where for every upload format the order of the fiels is different , or there are more fields for one upload interface compare to another.
Our users have to select which "upload format" they would like to use before the importstring function is called , this allows us to set the correct external datawindow.
Each customer can request their own upload format which will result after a while a dozen or so upload formats will be available.
I would like to be able to call the importstring function with a loop of datawindows.
If the returncode is -4 i know the upload/import didnt work.
In that case i can set the datawindow object again and try again...
This must work, i am convinced of this, but the question is : how do i get rid off the error messages popping up if i try to put a string in a column that isnt big enough and so on ... Is there any way of suppressing the error messages when importstring fails please ?
TIA
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.