on 10-09-2007 9:34 AM
Hi,
I am trying to create an webdynpro using the adaptive RFC model.
I have a single character import parameter in the RFC.I am trying to set the parameter value by declaring a field in the NWDS.
I am trying to declare it as follows.
boolean OPCL = "";
But I am getting an error as follows :
<b>"Type Mismatch : cannot convert from string to boolean"</b>
Please help.
Thanks,
Supriya Manik.
Hi
boolean OPCL = "";
here u r trying to asign string to a boolean
give
boolean OPCL = true;
or
boolean OPCL = false;
Regards
Abhijith YS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Supriya,
You are assigning a string value to a boolean variable and thus you are getting that error.
boolean has only 2 values either true or false
boolean OPCL = true;
boolean OPCL = false;
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi supriya.........
only two values r possible in boolean (true,false)
so if u r using boolean u have to u use this two value only
e.g. OPCL=true;
and if u want to be a single charracter than declare as string .............
with regards
jayesh talreja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.