SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 1999
    Location
    Austin, TX. USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window Statement

    When you record an application's main window, the sDir, sCmdLine, and sClasspath constants are created. I want to place these constants in a seperate include file and make them accessable to the window statement via a "use" statement. Example:

    use "my_constants.inc"
    (which contains:
    const sDir = "C:\MyApp"
    const sCmdLine = "C:\MyApp -option1")
    const sClasspath = "C:\some_classes"

    window MainWin MyApp
    // The following const are defined in "my_constants.inc"
    // const sDir = "C:\MyApp"
    // const sCmdLine = "C:\MyApp -option1"
    // const sClasspath = "C:\some_classes"

    However, there appears to be a scoping issue that requires these constants to be defined within the "window" statement proper. Does anyone know if this is indeed a restriction for these particular constants?
    Kendall Schmidt
    Vignette Corporation
    kschmidt@vignette.com

  2. #2
    Junior Member
    Join Date
    Aug 1999
    Location
    Boston, MA
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window Statement

    One way to do this might be ...

    constants.inc
    =============
    const APP_DIR = "c:\"
    const APP_CMD = APP_DIR + "\MyApp -option1"
    ...

    frame.inc
    =========
    use 'constants.inc'
    window MainWin MyApp
    const sDir = APP_DIR
    ...


    ------------------
    John McGrail
    John McGrail

  3. #3
    Junior Member
    Join Date
    Jan 2000
    Location
    Austin, Texas, USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window Statement

    Did you ever get this working??
    I also would like to pass in the directory
    and path to the sCmdLine and cannot find a
    way to do it.

 

 

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 09:27 AM.

Copyright BetaSoft Inc.