1. Sub aa()
2. Set cf = CreateObject("aplwincf.componentfile")
3. Dim feedback As String
4. comp = ActiveSheet.Range("A1:F6").Value2
5. cf.writecomponent "ajay", comp, feedback
6. rb = cf.ReadComponent("ajay")
7. End Sub
The passback variable is feedback, declare on line 3,. If I examine its value after line 5, it contains the value passed back BUT there is no explicit assignment. In APL
1. Sub GetDWinDir()
2. Dim feedback As String
3. feedback = Space(255)
4. ret = GetWindowsDirectory(feedback, 255)
5. windir = Left(feedback, InStr(feedback, Chr(0)) - 1)
6. MsgBox windir
7. End Sub
The variable is declared in line 3 and after line 4, it has changed - line 5 uses it to extract the relevant part.
APL has NO way of declaring a variable by type. I tried to use '#' []wi 'VT' as a means of declaring a variable but that did not work (probably because []wi is designed to ignore the variable).