StringToJString |
Type | handler |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | StringToJString(<pString>)
|
Associations | com.livecode.java |
Summary | Convert a String into a java string
|
Parameters | Name | Type | Description |
---|
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"
variable tCurrency as JObject
unsafe
variable tCode as JString
put StringToJString("AMD") into tCode
put CreateJavaCurrencyWithCode(tCode) into tCurrency
end unsafe
|
Values | Name | Type | Description |
---|
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.
|