Uniface User Forum

 View Only
  • 1.  Scan command no longer unsupported?

    Posted 12-11-2023 17:05

    In the Uniface version 10.3 documentation, it says that the ProcScript command "scan" is unsupported and the new equivalent is $scan. However, this is no longer the case in the 10.4 documentation; it lists "scan" as unsupported but the new equivalent is also "scan" (same thing).

    Has "scan" been removed from the unsupported list, and thus, is still supported?



    ------------------------------
    Jim Mitchell
    State of Oregon
    Salem OR US
    ------------------------------


  • 2.  RE: Scan command no longer unsupported?

    Posted 12-13-2023 09:16

    Just to put your mind at rest.... $scan works in 10.4 too



    ------------------------------
    Osman Shariff
    ------------------------------



  • 3.  RE: Scan command no longer unsupported?

    Posted 12-13-2023 11:33

    All of our code has "scan" so I just wanted to make sure that I don't have to change it to "$scan".



    ------------------------------
    Jim Mitchell
    State of Oregon
    Salem OR US
    ------------------------------



  • 4.  RE: Scan command no longer unsupported?

    Posted 12-13-2023 11:44

    So, I tested it in 10.4.01 and it works fine and there are no warnings...  Dunno about 10.4.02

    $scan is much nicer, so it might be worth doing the change at some point



    ------------------------------
    Osman Shariff
    ------------------------------



  • 5.  RE: Scan command no longer unsupported?

    Posted 12-13-2023 12:00

    10.4.02 works fine also without any warnings. $scan would require syntax changes (not just a straight replacement) so I'm sticking with scan.

    Thanks!



    ------------------------------
    Jim Mitchell
    State of Oregon
    Salem OR US
    ------------------------------



  • 6.  RE: Scan command no longer unsupported?

    ROCKETEER
    Posted 12-18-2023 05:14

    In general it is  better to use the function equivalent $scan instead of the scan statement. This is the general case in proc-script. The reason that some of the statements are still documented and work is for compatibility reasons. Even showing the compiler warning - "deprecated" is not taken lightly, just to avoid differences between the uniface versions and assure old applications can be recompiled and run without any change required.

    Hope this helps

    Jasper de Keijzer

    Principal software developer at Rocket Software - uniface.



    ------------------------------
    Jasper DeKeijzer
    Rocket Internal - All Brands
    ------------------------------



  • 7.  RE: Scan command no longer unsupported?

    Posted 12-19-2023 11:29

    Yes, that helps Jasper. Thank you for the additional information.



    ------------------------------
    Jim Mitchell
    State of Oregon
    Salem OR US
    ------------------------------