Serving the Quantitative Finance Community

 
User avatar
countblessings
Topic Author
Posts: 0
Joined: June 7th, 2012, 11:05 am

KDB Table being flipped to list

June 14th, 2012, 2:09 pm

My table in below code is automatically being flipped into a list, and therefore the comma join fails in the WHILE loop. Has anyone come across this kind of a problem please?// summary is still a table heresummary:show_pnl[`ABC;`NONE;-1];daycnt:0while [daycnt<5; o:show_pnl[`ABC;`NONE;daycnt]; // by this time, summary is flipped to a list summary:summary,(0!o); show o; show summary; daycntaycnt+1; ];
 
User avatar
ktang
Posts: 0
Joined: January 15th, 2010, 7:16 pm

KDB Table being flipped to list

June 18th, 2012, 6:23 am

Hmmm,most q mortals are in the kdb google group or in the k4 list. Perhaps the next time you should post your question in one of these to lists to get more response.As you know the return type of a function in q can be different in run time. Can you build type o to see the type of o ?If you refer to a global variable inside a function, you should use :: instead of : .HTH,Kim