"ASSERT: progress controls use variable not found!" on a report procedure after converting an old app

Applies to: Clarion 6.2 build 9048, multi-DLL apps converted from C50b; posted in the Clarion 6 group.

Problem

Compiling, or viewing source of, a report procedure gave "ASSERT: progress controls use variable not found!". In the generated ThisWindow.Init, just after SELF.Open(ProgressWindow), a line {Prop:Text}='' had lost the control name. The control ?Progress:UserString was on the window and was generated in TakeFieldEvent.

Solution

  1. Open the window definition source with the ellipsis button of the procedure's window.
  2. Look at each control. The templates refer to the #ORIG symbol so a renamed control does not break them. The controls should look like: PROGRESS,USE(Progress:Thermometer),AT(4,4,204,14),RANGE(0,100),#ORIG(Progress:Thermometer)
  3. The poster found the #ORIG() entries present but carrying the default names String1, String2 and so on. He copied the USE() variable names into the #ORIG() entries, and the error went away. The faulty one was ?Progress:UserString.

Caveats

  • Another poster who had hit this explained that older apps lack the #ORIG symbol, it is not added when the app is updated to a newer version, and it shows only in the window code behind the ellipsis button, not in properties or source.
  • A different guess, a missing Progress:Thermometer BYTE in local data, was not the cause in this case.
  • Many controls mean many edits by hand.

Today (2026)

Likely still applies to apps carried over from very old versions; not re-tested.

Sources: Joe (Mar 2008, the question), Steven P., Steven G. (Mar 2008), Carl S., Bjarne H. (Mar 2008) in softvelocity.public.clarion6.