SPONSORS:






User Tag List

Results 1 to 8 of 8

Thread: USE Argument

  1. #1
    Junior Member
    Join Date
    Aug 2000
    Location
    Phoenix, AZ
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    USE Argument

    I have USEed one inc file in my .t file on the top. All the objects are properly recognised in the inc file. but when I compile the .t file it give me this error message "USE argument must resolve to a constant string: use FindProvider1.inc"
    Any help will be appreciated.

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

    Re: USE Argument

    You have put the filename in quotes?
    The format you want is like this:
    use "FindProvider1.inc"

    From the error you report, it sounds like you have missed out the quotes, and it thinks that FindProvider1.inc is some kind of variable or constant you are referring to.

  3. #3
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: USE Argument

    Actually you want a single quote like
    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  4. #4
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: USE Argument

    I've always use the double quotes and it works all the time as in:

    use "reports.inc"
    use "guimap1.inc"

  5. #5
    Junior Member
    Join Date
    Aug 2000
    Location
    Phoenix, AZ
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: USE Argument

    Hi Gilbet,
    I tried using single as well as double quotes but still it gives me the compilation error.
    thanks

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

    Re: USE Argument

    Maybe the full path is required? If you have the .t and .inc files in different directories, then it will be looking for the .inc file in the same directory unless you give it the full path to the file.

  7. #7
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: USE Argument

    joginder,

    Check your Runtime Options and also check your spelling (as you will notice, you can't even spell my name right ( :

  8. #8
    Junior Member
    Join Date
    Jul 2000
    Location
    Kent, WA USA
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: USE Argument

    The default path is the relative path of your current location. So if you have a dir, call it: ..\silktest\mytests and that is where your frame files exist, then that is the default dir for scripting. So, use '../[FileName] would take you back up one level to the Silktest dir. You may also do this: use '..\myframe\frame.inc' if your frame files or other .inc files where in another location. Hope that helps.
    DG

 

 

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 05:41 AM.

Copyright BetaSoft Inc.