Add/Remove joined Table from Clarion View using PROP

The new project just created it first runtime queue from a simple string declaration.

Due to scope issues if a queue is returned the clarion runtime lost scope for some functions like Who and Where.

Creating a proxy queue container and passing it to the queue class constructor code returned a valid queue that the runtime could access IN SCOPE.

The queue constructor could be access with the following code and has passed it first test.

include(‘DdynaDataStructs.inc’),ONCE
include(‘qclasscontainer.inc’),ONCE

MAP

   module('ddynartl.clw')
      CreateQueuestruct(string DataStructure,qproxycontainer q),long 
  END
    
END

qproxy &qproxycontainer

Qflds ANY
qaddress long

CODE
Qflds = ‘Stockprices QUEUE,PRE(TST);’ |
‘Name STRING(@S100),ALIGN©,Name(’‘Name’’);’ |
‘Code SHORT(@N_5),ALIGN®;’ |
‘Price DECIMAL(@N13`2),ALIGN®;’ |
‘Input DATE(@D6.B),ALIGN®;’ |
‘Closed DATE(@D6.B),ALIGN®;’ |
‘END;’

qproxy  &=  new(qproxycontainer)    
qaddress = CreateQueuestruct(Qflds,qproxy)
if qaddress > FALSE
     
       Qflds  &= what(qproxy.Q,1)
      Qflds = 'Your Name'
      add(qproxy.q)
      message(Qflds&'   '&who(qproxy.Q,1)&' '&who(qproxy.Q,2))
     
END

Not another climate change denier! :rofl: