SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco ,CA,U.S.
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I use space as delimiter in GetField() function?

    If so, what's the syntax?
    I wasn't able to use it like this:
    string sAccount = GetField ("Checking*613601293", ' ', 2).
    Or:
    StrPos(Space(1),"Checking 613601293") returns 0.
    I'm pretty sure there is one space, since Len("Checking 613601293") function returns 18 characters.
    Any ideas?
    Thank you very much!

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    I copied and pasted both of your examples into my SilkTest test and both worked fine. I'm using SilkTest 5.0.2

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco ,CA,U.S.
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    That's weird. I'm using SilkTest 5.5 SP2. Has anybody tried it using SilkTest 5.5 SP2?
    I guess I need to contact the Segue's tech support again.

    tx,
    Lev.

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    Laurel, Maryland, USA
    Posts
    204
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Levka:
    That's weird. I'm using SilkTest 5.5 SP2. Has anybody tried it using SilkTest 5.5 SP2?
    I guess I need to contact the Segue's tech support again.

    tx,
    Lev.
    <HR></BLOCKQUOTE>


    I works fine on 5.5 SP1. I can't imagine this being a SP2 problem (well, then again ...)

    I would think this is a problem with the 'space'. Try printing out that character -
    and see if you get 32 returned. If not, it's not a space.


    ------------------
    Atlee
    Atlee

  5. #5
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco ,CA,U.S.
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    Got it:
    GetField("Checking 613601293",Chr(32),2) works.
    Can't explain why, though...

    thanks,
    Lev.

  6. #6
    Junior Member
    Join Date
    May 2001
    Location
    San Francisco ,CA,U.S.
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    Wrong answer again. Here is what's happening. The string that I return from HtmlPopupList doesn't contain space character Chr(32). It looks like it though. But instead it has some kind of hidden character Chr(160).
    So, when I'm doing like this GetField( sString,Chr(160),2), it works.

    thanks everybody,
    Lev.

  7. #7
    asp
    asp is offline
    Junior Member
    Join Date
    Apr 2001
    Location
    Boston,ma
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    Your script should work.And it is always working.You have to use " "
    [ ] string sAccount = GetField ("Checking 613601293", " ", 2)
    [ ] print(sAccount)


    ------------------

  8. #8
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can I use space as delimiter in GetField() function?

    ASP:

    You are not totally correct(if you read his previous comment). The returned string contains chr(160) which is visually a space but different from the normal space(chr(32)) for the program.


    Levka:
    Happy that someone got the same space problem that I had last year.

    There are couple characters that are visually the same but coded differently check it ascii code is a very good idea.
    Don't trust your eyes for empty characters



    [This message has been edited by GodKnows (edited 03-14-2002).]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:54 PM.

Copyright BetaSoft Inc.