Do I need to add an import of some kind to my source?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Do I need to add an import of some kind to my source?

kenner

 

I have this:

 

import netrexx.lang.Rexx

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Do I need to add an import of some kind to my source?

rvjansen
<base href="x-msg://4636/">Kenneth,

no, this means that a Java 'String' type does not have the method 'words' on it- you can only call this method on type Rexx strings. Sometimes, most easy thing to do is cast the java String.

Let's say your java string is called 'ajavastring'. You can get to know how many words it has by invoking it like this:

number_of_words =  (Rexx ajavastring).words()

best regards,

René.

On 17 dec. 2012, at 15:09, "Kenneth Klein (TEMA TPC)" <[hidden email]> wrote:

<image001.png>
 
I have this:
 
import netrexx.lang.Rexx
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Do I need to add an import of some kind to my source?

ThSITC
*Just as an imagination* (of course, from me, beeing a *dreamer*)

Couldn't the NetRexx Compiler vs. 4.00 *simply* do those and any and all of those transfromations
between Java String Methods and NetRexx Rexx String methods ...

... DO *on the FLY* ??

Listen members here:

When *anybody does say* NO!

*I* shall probably go ahead and prove, that the correct answer is *YES*!

OK?
Happy new year 2013, any way (and merry X-mas before, of course)!

Thomas.
=========================================================================
Am 17.12.2012 21:01, schrieb René Jansen:
<base href="x-msg://4636/">Kenneth,

no, this means that a Java 'String' type does not have the method 'words' on it- you can only call this method on type Rexx strings. Sometimes, most easy thing to do is cast the java String.

Let's say your java string is called 'ajavastring'. You can get to know how many words it has by invoking it like this:

number_of_words =  (Rexx ajavastring).words()

best regards,

René.

On 17 dec. 2012, at 15:09, "Kenneth Klein (TEMA TPC)" <[hidden email]> wrote:

<image001.png>
 
I have this:
 
import netrexx.lang.Rexx
 
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/




_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



--
Thomas Schneider, IT Consulting; http://www.thsitc.com; Vienna, Austria, Europe

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Thomas Schneider, Vienna, Austria (Europe) :-)

www.thsitc.com
www.db-123.com