I’ve created #Groups and pass values that way, dont forget you can use the * in the same way we use them in an app, ie pass by address.
#Group(%grpKeyFields,*%pKeyFields)
#Group(%grpParseEquate,*%pIO1,*%pIO2)
#!This calls a procedure which passes a csv string back which is parsed into the two vars from
#! "WhenAccepted( %grpPArseEquate(%EquateName,%EquateValue)"
#!
#Declare(%csvstring)
#Declare(%commaPos)
#Declare(%csvStringLen)
#Set(%csvString,clip(%pIO1) &','& clip(%pIO2))
#RunDll('MyRundll.dll','PROC3@FRsc',%csvString),release,win32
#Set(%commaPos,instring(',',%csvString,1,1))
#Set(%csvStringLen,Len(Clip(%csvString)))
#Set(%pIO1,Sub(%csvString,1,%commaPos-1))
#Set(%pIO2,Sub(%csvString,%commaPos+1,%csvString - (%commaPos + 1)))
#Group(%grpReadReg,*%pIOLine)
#!pIOLine format
#!Byte1 1 or 0 - Send debugview message from ReadReg.dll
#!Byte2 Seperator could be comma, semi colon or any other single digit alphanumeric.
#!Byte3+ Rest of the parameter is like GetReg seperated with the Byte2 seperator
#! Can use Microsoft HKLM, HKCU abbreviations or Clarion REG_LOCAL_MACHINE abbreviations. Both formats are supported.
#!
#RunDll('C6ReadReg.dll','C6READREG@FPsc',%pIOLine),Release,Win32
Pretty much everything you can do in a clarion app, I can port to a template! ![]()
I’ve got templates even sending their code to debugview,
and I have my debugview template working, which adds code to apps.