SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Aug 2002
    Location
    Phoenix,AZ,USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to declare a window to variable this

    Hello, I am new to silk and currently there are a set of switch statements that are being used and the initial run through of the switch statement is in the main window, and the word this is being used. Well at the end of this statement you click on an ok button and go to a different window but it needs to run through the same switch statements again. Is there a an easy way to do this by declaring what the window this will be?

    Thanks!

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

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to declare a window to variable this

    I can see at least 3 different ways to answer this. Can you provide a code example or two about how you intend to use it so that we can focus on an appropriate solution?
    Knowing something general about what the switch statement does, would also be useful.

    The three possible solutions are:

    1. code the switch block into function.

    2. code the switch block into an instance method.

    3. code the switch block into method for a special class to be applied to instances where it's needed.


    Take a look at the "UBB Code is.." link on the left before you post actual code. (It makes the code fragments easier on the read).


    John


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

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Location
    Phoenix,AZ,USA
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to declare a window to variable this

    Hi John,

    I actually figured out how to get around this and have this work fine. I do appreciate the advice you gave to me though.

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

 

 

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 10:45 PM.

Copyright BetaSoft Inc.