Issue 31129  —   UF97: $curoccvideo Option "up" and "off" will cause compile error

Status:   Solved in 10.2.01

Solution available in patch(es):      G102

Description:

 Summary:
 Uniface: The $curoccvideo Option "up" and "off" will cause a syntax error
 (Topic not valid) when compiling with Uniface 9.7.01. This problem does not
 occur when using version < 9.7.

 Environment:
 +Uniface: Version 9.7.xx
 +Operating System: OS independent
 +Database: DBMS independent

 Symptoms:
 The $curoccvideo Option "up" and "off" will cause a syntax error (Topic not
 valid) when compiling with Uniface 9.7.01. This problem does not occur when
 using version < 9.7.

 Consider the following code:

 $curoccvideo("ENT2", "up") = "DEF"
 $curoccvideo("ENT3", "off") = ""
 $curoccvideo("ENT1", "inner,off") = ""

 When compiling the above code with Uniface 9.7 then the result is (e.g.):

 (EXEC)      1         $curoccvideo("ENT2", "up") = "DEF"
 (EXEC)    error:   1000 - Syntax error (Topic not valid)
 (EXEC)      2         $curoccvideo("ENT3", "off") = ""
 (EXEC)    error:   1000 - Syntax error (Topic not valid)
 (EXEC)      3         $curoccvideo("ENT1", "inner,off") = ""
 (EXEC)    error:   1000 - Syntax error (Topic not valid)

 Note: The option "inner" is still working (e.g. '$curoccvideo("ENT1", "inner")
 = "DEF"')

Workaround:

 Instead of the function $curoccvideo use the statement curoccvideo:
 
 curoccvideo/up "ENT1", "DEF"
 curoccvideo/off "ENT1"
 curoccvideo/inner/off "ENT1"

Notes:

 The way to specify video properties in $curoccvideo has changed
 for the option "off" combined with "inner" or "up".

 Use a Uniface list (i.e. GOLD-separated), instead of a
 comma-separated list to specify the options.

   Example:

      $curoccvideo ("ENT1","inner;off")

   where the ; is in a GOLD character

 See the User Documentation topic $curoccvideo for more
 information on the syntax