Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tigerstripe-users] How do one select string type for an enum artifact?

Title: Re: [tigerstripe-users] How do one select string type for an enum artifact?
Hi Phil,

Yes. By default, Enumeration use “int” as the base type.
To change that to be “string”, open the Enumeration (double click on it from the Explorer), select the “Details” tab on the editor (at the bottom).
You’ll get to switch between “int” and “String”.

Please note that if you had defined literals as “int” literals, and then change the base type to be “string”, these literals will be “in error”. You’ll need to update them by hand.

Hope that helps,
Eric


On 3/17/09 1:02 PM, "Phil Chen" <pchen@xxxxxxxxxxxxxxxxxxxxx> wrote:

When creating an Enumeration artifact, the constant data type selection is grayed out--it has a preselcted "int" type. User cannot change it.
When creating a constant within Datatype artifact, one can choose either "int" or "string.
 
Is it possible to create a string type enum artifact?
 
Thanks for your help!
 
--Phil


_______________________________________________
tigerstripe-users mailing list
tigerstripe-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tigerstripe-users

Back to the top