Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Incompatible type for NOT operator: nullable`1[system.boolean].

$
0
0

Also, make sure every code path in your method returns a value... If the default return is false, make sure to have a RETURN FALSE right at the end.

 

If I was creating a PB to C# converter, I would make this method return a nullable type:

 

FUNCTION BOOLEAN InitializeComponent(string as_odbc)

 

   IF as_odbc = "valueA" THEN

       RETURN TRUE

   END IF

 

   IF as_odbc = "valueB" THEN

       RETURN FALSE

   END IF

 

END FUNCTION


Viewing all articles
Browse latest Browse all 7329


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>