StringToJString

Typehandler
DictionaryLCB
LibraryLiveCode Builder
Syntax
StringToJString(<pString>)
Associationscom.livecode.java
Summary

Convert a String into a java string

Parameters
NameTypeDescription
pString

The String to convert

Example
foreign handler CreateJavaCurrencyWithCode(in pString as JString) returns JObject binds to "java:java.util.Currency>getInstance(Ljava/lang/String;)Ljava/util/Currency;!static"

-- Create a new Currency object
variable tCurrency as JObject
unsafe
	variable tCode as JString
	put StringToJString("AMD") into tCode

	put CreateJavaCurrencyWithCode(tCode) into tCurrency
end unsafe
Values
NameTypeDescription
return

A JObject of type java.lang.String

Description

Use StringToJString to convert a variable of type String to an instance of the class java.lang.String.