Thanks Alines works perfect!
>>Hi all,
>>
>>I want to slice a string into an array: 90.80.67.30. ---> aVariable[1] = 90, aVariable[2] = 80, Variable[3] = 67, aVariable[4] = 30
>>I thought there was a foxpro function for it, that I forgot.
>>
>>Thanks beforehand.
>
>The built-in function is alines().
>
>Here is a sample which I just tested in the command window:
>
>
>ALINES(MyArray, "10.1.0.15", 0, ".")
>? MyArray(1)
>? MyArray(2)
>? MyArray(3)
>? MyArray(4)
>
>
>Note that the fourth parameter (character delimiter) works in Visual FoxPro 9, but not in Visual FoxPro 6. I don't know exactly in what version it was introduced, since I didn't do any serious work in versions 7 and 8. For older versions, you can first do a replacement with strtrans().