cancel
Showing results for 
Search instead for 
Did you mean: 

Fox formulas data types conversions

Former Member
0 Kudos

Hello,

Is there any simple way (explicit or emplicit ) to convert a number data type such as I , to a string data type?

for example :

Data MyNumber type I.

Data MyString type String.

MyNumber = 50.

MyString = MyNumber.

BR,

Guy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check this.

Data MyNumber type I.

Data MyString type String.

MyNumber = 50.

MyString = 'MyNumber'.

Former Member
0 Kudos

MyString = 'MyNumber' Will only initilize "MyNumber" as a string into MyString and not it's value.

what i need is:

MyNumber = 345.

MyString = MyNumber.

Value of MyString should be -> '345'

Former Member
0 Kudos

Hi,

You can't use type N in FOX otherwise it would have been very simple if you use N instead of String for MyString.

But, now what you can do is write a simple function module, export your no. to it and inside FM assign that number to a type N field and return that field value to your FOX assigning it to MyString.

Former Member
0 Kudos

I will try the FM solution.

Thank you very much ,

Guy

Answers (0)