SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Issues with multitag definition

    I have a GUI Object appearing differently in dinfferent we pages, sometime Silk sees:
    Htmltable("#1").HtmlColumn("#2").HtmlImage("object ")
    and somtimes it sees the same object on another page as:
    HtmlImage("object").
    So I tried to use multitag to define "object" in my inc-file like this:
    HtmlImage objectID
    multitag "[HtmlImage]object"
    "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object"

    But then when I try to compile the .inc-file I get the following error:
    ** Multitag prefix not in first multitag item **

    Can someone please tell me how to resolve this and solve the problem.

    Thanks for your help.


    ------------------
    Silverter - A profi was once a beginner
    Silverter - A guru was once a beginner

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

    Re: Issues with multitag definition

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by silverter:
    I have a GUI Object appearing differently in dinfferent we pages, sometime Silk sees:
    Htmltable("#1").HtmlColumn("#2").HtmlImage("object ")
    and somtimes it sees the same object on another page as:
    HtmlImage("object").
    So I tried to use multitag to define "object" in my inc-file like this:
    HtmlImage objectID
    multitag "[HtmlImage]object"
    "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object"

    But then when I try to compile the .inc-file I get the following error:
    ** Multitag prefix not in first multitag item **

    Can someone please tell me how to resolve this and solve the problem.

    Thanks for your help.
    <HR></BLOCKQUOTE>

    I don't know of a solution to this - I would be very interested in one as well.

    The multi-tag statement requires that the prefix be the same for each entry, so you can't do what you want to do. If you have one entry defined as "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object", then subsequent entries must have "[Htmltable]#1/[HtmlColumn]#2/" as the prefix. If your first entry doesn't have a prefix, subsequent ones can't have a prefix either.

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

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Issues with multitag definition

    You could try declaring the same object twice, once for each location it can appear in. Then, for any method you will need to call on it (e.g. ClickRegion), define a method of your window called something like ClickRegionOnImage (or whatever). This method can then check (at runtime) which of the two objects actually exists, and call ClickRegion appropriately.

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

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

    Re: Issues with multitag definition

    You can also use ~ActiveApp to express variable parentage, although you may have trouble keeping your tags unique that way.

    If you had a window that appeared with different parentage in different contexts, and had a lot of children, you would want to make a class containing all the children, and declare two windows of that class, each with a different parent/tag. But you probably don't have a lot of children to worry about here.

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

  5. #5
    Member
    Join Date
    Jan 2001
    Location
    Westborough, mA, USa
    Posts
    91
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Issues with multitag definition

    I had faced the same problem as you. It is a Silk Issue. For silk the multitag statement like
    multitag "parent/tag1"
    "tag2"
    resolves as
    multitag "parent/tag1"
    "parent/tag2"

    On the other hand if u specify it as
    multitag "[HtmlImage]object"
    "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object" u will get a compile error because the first tag does not have a parent and the second tag has a parent

    But if you specify it as
    multitag "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object"
    "[HtmlImage]object"- u will not get a compile error but your window would not be recognized
    because it would be resolved as
    tag ""[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object|"[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object" at runtime.

    So u can write a sGetTag() function like as follows

    [+] HtmlImage MyImage
    [ ] tag sGetTag()
    [ ]
    [-] String sGetTag()
    [-] if HtmlImage("object").Exists()
    [ ] return "object"
    [-] else
    [ ] return "[Htmltable]#1/[HtmlColumn]#2/[HtmlImage]object"
    [ ]


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


    [This message has been edited by Sandeep (edited 01-28-2002).]

    [This message has been edited by Sandeep (edited 01-28-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 02:28 PM.

Copyright BetaSoft Inc.