Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question about a ARRAY?
Message
 
 
À
04/10/2000 17:21:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00425026
Message ID:
00425123
Vues:
14
>>When you need just trim 1 element, use 'RTRIM(MyArray(nIndex) )'
>>For all array items no way except lop through array:
>>
>>local lnIndex, lnCount
>>m.lnCount = alen(MyArray)
>>for m.lnIndex = 1 to m.lnCount
>>  MyArray[m.lnIndex] = rtrin(MyArray[m.lnIndex])
>>endfor
>>
>>
>>>How do you trim the blanks out of an elememt of an array?
>>>example...I have an element called "my element "....I need
>>>the to trim right side of this element...
>Hi Vlad and thanks for you reply....:) and it works....:))))
To be more presize, the above code should not work, since it misspelled rtrim function :) BTW, you should be able to find info about all string functions in a Help file. There are lots of them...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform