Project

General

Profile

Support #4951

Updated by Greg Shah over 3 years ago

Since 4GL allows passing a character (variable or string) for a longchar input parameter I thought we need to replace @longchar@ with @Text@ for all input parameters on OO methods. Although this could be handy if we want to call those methods from Java for converted 4GL code this seems not to be needed because the conversion make sure the parameter passed is a longchar:
<pre>
oMap.ref().put(pcKey, new longchar(pcKey))). // pcKey is character
oMap.ref().put(pcKey, new longchar(new longchar("value")))). // string value used in code, seems a bit overdone :)
</pre>

Question, is there a 'rule' for this as in do we must leave it @longchar@, can we use @Text@ instead or this is actually a requirement (use Text instead of longchar)?

Thanks

Back