### Type conversion like cint(), val(), etc.

Posted:

**Sun Apr 11, 2010 12:44 am**I am having trouble with type conversion in Objective-basic. I see no functions equivalent to these, commonly used in REALbasic:

val(), cint() - used to convert text to integer or numeric values

cstr() - used to convert numeric values to strings.

How do you accomplish these simple tasks in Objective-basic? I see it is sometimes possible to force things into id variables and use those, but it doesn't seem to always work. Ways of doing this are quite important to the applications I need to write as I must do math and extract numeric values from text strings, then convert these results to numbers again.

val(), cint() - used to convert text to integer or numeric values

cstr() - used to convert numeric values to strings.

How do you accomplish these simple tasks in Objective-basic? I see it is sometimes possible to force things into id variables and use those, but it doesn't seem to always work. Ways of doing this are quite important to the applications I need to write as I must do math and extract numeric values from text strings, then convert these results to numbers again.