For Java, assuming *text_one* and *text_two* are 
com.google.appengine.api.datastore.Text objects that you want 
to concatenate:

Text text_three = new Text(text_one.getValue() + text_two.getValue()); //To 
create a new Text object to use
String string_three = text_one.getValue() + text_two.getValue(); //To 
generate a String from the two Text objects

You cannot use .toString() because that method only returns the first 70 
chars of the text, .getValue() returns the entire text.

-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

@GOV on AppDotNet: https://alpha.app.net/gov



On Thursday, April 11, 2013 7:00:37 AM UTC-5, Moises Belchin wrote:
>
> You can use Python string interpolation
>
> new_text = '%s %s' % (text1, text2)
>
> Regards.
>
>
> Saludos.
> Moisés Belchín.
>
>
> 2013/4/11 Julie Smith <[email protected] <javascript:>>
>
>> Please be more specific in your questions!
>>
>> It depends on the language. For example, in Python
>> *new_string = string1 + string2*
>>
>>
>> On 11 April 2013 15:13, Newbee <[email protected] <javascript:>>wrote:
>>
>>> How to concatenate Text in GAE
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google App Engine" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to 
>>> [email protected]<javascript:>
>>> .
>>> Visit this group at 
>>> http://groups.google.com/group/google-appengine?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>  
>>>  
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/google-appengine?hl=en
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to