I am trying to cast kx.c class flip object to a string:
String test = (String) c.at(flip[0],1)
However I am getting an error stating that I cannot cast C objects to String. Does anyone know what I can cast a kx C object to return a string?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not too sure what you mean exactly by “C objects” but I assume that it is a char array – the Java type to represent a Kdb string. Here is what you can do:
If you are trying to retrieve a kdb symbol then it will be a String array.