Main Menu

KB#00499-Problem with the ALL keyword and arrays in PRO/5

Title:

Problem with the ALL keyword and arrays in PRO/5

Description:

This program works in BBx/4 but not in PRO/5: 

0010 DIM AA[34],BB[34] 
0030 IF BB[ALL]<>AA[ALL] THEN LET BB[ALL]=AA[ALL] 

Resolution:

The behavior under PRO/5 is correct. Basically, PRO/5 cannot execute line 30 because it involves the ALL operator. BBx can make an assignment based on ALL (a[ALL]=b[ALL]), but it cannot use it in the condition as mentioned. This never actually worked in PROGRESSION/4 either. In PROGRESSION/4, it was treating the ALL keyword as a normal, non-reserved numeric variable. Therefore, unless your program assigned a value to the numeric variable 'all', the condition BB[ALL]<>AA[ALL] really was treated like BB[0]<>AA[0].



Last Modified: 01/29/1998 Product: PRO/5 Operating System: All platforms

BASIS structures five components of their technology into the BBx Generations.

  Google+ View BASIS LinkedIN Profile Visit our Twitter Feed Check out our Facebook Public Profile Click to View the BASIS youTube channel