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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

StringSplit and double-quotes issue

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2008, 06:52 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default StringSplit and double-quotes issue

I guys...
I'm starting a web project, and need to split the resulting string from the response string...
My problem is that my split string is very specific, so it should return an arry of only 2 sub-strings...

Code:
Response.Value=Request.GetResponse
    Source=Response.GetString
    z = 
Chr(34)
    SS = 
"type=" & z & "hidden" & z & " name=" & z & "login" & z & " value=" & z
    a()= StrSplit(Source,SS)
Instead, the split is being threted as blank (guessing), thus resulting in over 2000 sub-strings...

WHY???
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 07-24-2008, 07:04 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Beacause each and every character in SS is treated as an individual separator. StrSplit does not treat SS as a string to search for, instead it regards it as a list of separators. Try using SubString instead.
Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 07:05 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Beacause each and every character in SS is treated as an individual separator. StrSplit does not treat SS as a string to search for, instead it regards it as a list of separators. Try using SubString instead.
I didn't know that.. thanks Andrew...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
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
How to use double quotes in a text ? origami Questions (Windows Mobile) 4 11-08-2011 06:48 AM
Double clicks on a cell in a table list, possible? davidcoderlab Questions (Windows Mobile) 3 06-01-2008 03:09 PM
Dim variable c% as Double colin9876 Basic4ppc Wishlist 8 05-28-2008 02:26 PM
Stock Quotes Viewer Alex812 Share Your Creations 2 11-17-2007 09:32 AM
preventing double application launch Put Claude Questions (Windows Mobile) 3 10-02-2007 02:52 PM


All times are GMT. The time now is 04:23 AM.


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