Developer Tools
Questions related to KX Developer Tooling
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Function restrictions

If I run this in a script it works. dwaction: ([action:`dload`kload`kinc]desc:("D";"K";"KI")); `:db/dwaction set dwaction; dwstatus: ([status:`progress`success`error]desc:("P";"F";"E")); `:db/dwstatus set dwstatus; dwlog: ([]action:`dwaction$();statu...

borota by New Contributor
  • 471 Views
  • 1 replies
  • 0 kudos

Empty table with foreign key

I am trying to run this code from here http://www.kx.com/q/d/kdb+1.htm :s:([s:()]name:();status:();city:())p:([p:()]name:();color:();weight:();city:())sp:([]s:`s$();p:`p$();qty:())But I am getting an error saying 'typeWhat am I doing wrong? Sometimes...

borota by New Contributor
  • 877 Views
  • 3 replies
  • 0 kudos

okx not usable?

May I confirm if okx is still usable in k.h?I got the following linker error (compilation was fine):Wind_subscribe.obj : error LNK2019: unresolved external symbol _okx referenced in function "struct k0 * __cdecl Wind::pubsub::invokeCallback(int)" (?i...

Flying by New Contributor III
  • 825 Views
  • 3 replies
  • 0 kudos

sd0/sd1 in Win32?

As I understand, if I need call from C into q's main loop, I'll need to use sd0/sd1.But may I understand what the parameter of type I mean? The sample code given are for Linux, where sys/eventfd.h is used. How about Win32? What kind of handle can I p...

Flying by New Contributor III
  • 963 Views
  • 4 replies
  • 0 kudos

Monday/Sunday of date

In SQL to get previous Monday of a date I do following:DATEADD(day,(DATEDIFF(day,'1900-01-01',GETDATE())/7)*7,'1900-01-01')To get following Sunday I do:DATEADD(day,(DATEDIFF(day,'1900-01-01',GETDATE())/7)*7,'1900-01-07')Note that this gives Monday/Su...

borota by New Contributor
  • 703 Views
  • 2 replies
  • 0 kudos