SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    the caption should be returned by default. you should only see the prior text if the object has no caption.

    from help...

    "For objects with no caption, GetContents returns either the prior static text string or an index number for the object."




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

  2. #2
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GetContents ( ) Issue Help please..

    When I use GetContents() on the following page, instead of captions I get index or prior for a lot of items. How can I force getcontents to only get captions which is defined for each object. (Note: change file extension from .txt to .htm)

    here is the code
    [ ] Browser.SetActive()
    [ ] listprint( BrowserPage.GetContents())

    Sample of Results

    [ ] [HtmlCheckBox]M
    [ ] [HtmlText]M
    [ ] [HtmlText]^Order:
    [ ] [HtmlText]Mutual Fund
    [ ] [HtmlLink]^Mutual Fund
    [ ] [HtmlCheckBox]USST
    [ ] [HtmlText]USST
    [ ] [HtmlText]#20
    [ ] [HtmlText]US STOCKS
    [ ] [HtmlLink]^US STOCKS
    [ ] [HtmlCheckBox]E


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

  3. #3
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    If you look at the attached page all the objects have captions associated with them. Then why it is listing prior text or indexes.
    Anyone else..

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


    [This message has been edited by KS (edited 03-18-2002).]

  4. #4
    Junior Member
    Join Date
    Oct 2001
    Location
    CA, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    Make sure in Record Window Declarations | Options, that the Default tag is set to
    'Caption' - not set to 'Prior text'.

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

  5. #5
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    I made sure that window Declarations | Options,is set to 'Caption' - not set to 'Prior text'. it didn't work.
    You can try if you like.
    I am using SP2a and I am wondering if that is the reason..

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

  6. #6
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    Try going back to SP1-

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  7. #7
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    Unfortunatly SP1 gave the same results..
    Thank you everyone for help.

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

  8. #8
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    You really want to get the caption, not the contents, so use GetCaption():
    You may want to do some extra massage work if that's not exactly the list that you want, but you get the idea.
    --AG

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

  9. #9
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    Bro, This is clever..
    Thanks.

    While exploring other ways we found out that if you play with the borderless table settings you can also get captions of a perticular column you are interested in. As you increase the table setting silk groups object togather.
    Thanks again.

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

  10. #10
    Junior Member
    Join Date
    Oct 2001
    Location
    CA, USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: GetContents ( ) Issue Help please..

    I would think GetContents() would behave
    similarly to GetCaption() under the same
    settings.

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

 

 

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 04:11 PM.

Copyright BetaSoft Inc.