SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SQABasic challenge

    User Kelley Ann Lahey (kelley.lahey@hrdc-drhc.gc.ca) posted:

    In C++ we can overload any function we write ourselves. Polymorphism
    specifically refers to overloading operators ( the "+" sign, ">>" in
    stream operator etc) This permits you to teach C++ how to perform
    operations on the classes your create or something to that effect. I am a
    little rusty in C++ because I taught a year ago and haven't touched it
    since coming to work here.

    ---

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SQABasic challenge

    User Tim Gerrells (tim@intellocity.com) posted:

    John,

    Can't C/C++ function overloading be approximately emulated in SQABasic with
    the notion of optional parameters, at least to an extent? Using Select Case
    logic within the function to refine some of the nuances?


  3. #3
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SQABasic challenge

    User Crunk John (ext3jpc) (ext3jpc@ups.com) posted:

    Is this really overloading. Are you changing the function of a variable or
    operator stored in memory? You can not do low level functions in a high
    level language.

    John


  4. #4
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SQABasic challenge

    User MArk B. (mkbutler@russellmellon.com) posted:

    This is starting to sound like a "Tomba". Code that creates code...

    Call a function with the values for the various arguments which creates a
    .rec file and then when it's done, calls the "Main" in that .rec which calls
    the function that was just created. (Or it creates a wrapper function for
    the just created one which is called instead of the main) (I think you'd
    still have to call the .rec with a CallScript to force the compile)

    Another thing you could put into this is that it doesn't create a completely
    new instance of the .rec file if it doesn't need to. You could create a
    "definition" file which would describe the functions that were created in
    the .rec previously. You'd have the code check that first to see if what
    it's about to create already existed.

    MArk B.
    It's too *)^(* early in the AM for this.


    "Tim Gerrells" <tim@intellocity.com> wrote in message
    news:58683@sqa-suite-users...
    with
    Case
    secure
    the
    variable
    in
    a
    ---

  5. #5
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: SQABasic challenge

    User Sokol, Spencer (Spencer_Sokol@firstdatabank.com) posted:

    Heya... maybe somebody said this already, but why not use a two-dimensional
    array to hold in the input 'variable name' and values?

    i.e.

    Const MAX_VALUES As Integer = 100
    Dim aInputValues(1 to MAX_VALUES, 1 to 2) As Variant

    aInputValues(1, 1) = "sName"
    aInputValues(1, 2) = "some value"


    It may not be quick to search through, but you could write a small sub to do
    that for you. The only language I know of that you can take a string
    literal and declare a variable from it is M(umps). It has what's called
    indirection (if I recall properly), where you can set a string literal to an
    executable line of code (a declare, function call, etc.), use the
    indirection operator and it would be interpreted at run time.

    Sorry I couldn't be of more help...


    [s p e n c e r-s o k o l]

    Software Quality Assurance Analyst
    First DataBank

    "Pure Rock Fury."

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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:35 AM.

Copyright BetaSoft Inc.