Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Other languages > Russian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

StrSplit

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-2008, 07:01 PM
Junior Member
 
Join Date: Nov 2008
Posts: 13
Default StrSplit


Доброе времячко ВСЕМ!!!
Есть очень удобная функция StrSplit!!!
строка разделенная запятыми разбивается на части формируя массив.
Думаю особенно удобно ее использовать для чтения csv файлов.
Но очень хочется спрсить у Вас, а есть ли в basic4ppc функция противоположная? обычно это join... но здесь я не нашел ничего похожего...
конечно не сложно сформировать строку вручную, изобразив что то похожее на:
vrstr=vr(1)&","&vr(2)&","&vr(3)... и т.д.
Но если массив достаточно большой... это не есть удобно...
Простите конечно за нубство...
Reply With Quote
  #2 (permalink)  
Old 11-10-2008, 02:04 AM
Knows the basics
 
Join Date: Jun 2008
Location: Barneveld, NL
Posts: 78
Default

vrsrt = vr(0)
for i = 1 to ArrayLen(vr)-1
vrstr = vrstr & "," & vr(i)
next
Reply With Quote
  #3 (permalink)  
Old 11-10-2008, 04:10 PM
Junior Member
 
Join Date: Nov 2008
Posts: 13
Default

Да конечно отличное решение
Но вопрос состоял несколько в другом...
Другими словами, надо понимать, что обратной функции StrSplit нет???
Reply With Quote
  #4 (permalink)  
Old 11-11-2008, 01:27 AM
Knows the basics
 
Join Date: Jun 2008
Location: Barneveld, NL
Posts: 78
Default

I'm no expert, but I don't think there is a real inverse StrSplit. The code I showed will work and is very simple. If you have a big array then it might be better to use the StringsEx library (the StringBuilder methods)
Reply With Quote
  #5 (permalink)  
Old 11-17-2008, 11:59 AM
Newbie
 
Join Date: Nov 2008
Posts: 6
Default

StringsEx - а где про нее почитать можна ?
Reply With Quote
  #6 (permalink)  
Old 11-17-2008, 12:18 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,825
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

The help file is here:
StringsEx

And information about last updates here:
http://www.basic4ppc.com/forum/addit...-listings.html

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
StrSplit oddity Big JR Questions (Windows Mobile) 3 05-20-2007 11:10 PM


All times are GMT. The time now is 08:15 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0