Renegade
8th January 2003, 10:44
I have to retrieve the 'Question' from the dictionary, using the question code. Is there any way to get it?

I have been using form.text$ for retreiving Message, but not working with Questions. I am on BaanERP5b

I can do a select on Tools table. But that is the last option. I am in a multibyte environment.

PLease help if anyone knows.

Thanks in advance

OmeLuuk
8th January 2003, 10:57
See function ask.enum() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_enumerates_ask_enum)

Renegade
8th January 2003, 12:21
I want the value of ttadv461.ques to be assigned to a string variable

ask.enum() may not provide me that

Dikkie Dik
8th January 2003, 14:51
what aboutform.text (http://www.baanboard.com/programmers_manual_baanerp_help_functions_message_handling_form_text) ?

Renegade
8th January 2003, 15:16
seems form.text$ works only for message, not for question.

Dikkie Dik
8th January 2003, 15:21
That's correct. But I thought you maybe could use it (as you talk about custo) and mis use the Message table a bit :D .

But in case you want to use the standard questions I am afraid there is no solution except quering the table.

Kind regards,
Dick

Dikkie Dik
8th January 2003, 15:49
Was browsing through some code (5.0c ttdllhypertext) and found the following:

function extern bool read.ques.desc(string arg(ARG.LEN),
ref string desc,
[ domain ttaad.clan clan , long develop,
domain ttadv.cpac cpac, domain ttadv.cque cque,
domain ttadv.vers vers, domain ttadv.rele rele,
domain ttadv.cust cust ])
{
DLLUSAGE
Read question description of the question code arg

pre : arg is the questioncode in the format of ppqqqqqqqqqqqqq
clan is optional, default language$
develop is optional
false: read description in runtime VRC tree. [default]
true : read description in development VRC tree (ttadv040)
cpac & cque & vers & rele & cust are optional,
they contain the selected report
post: true - desc filled with question description
false - desc is empty
ENDDLLUSAGE

Hope this suits for you. As it is not documented it is not supported but hopefully that is no problem :p

Dick

Renegade
17th February 2003, 12:57
Thanks Dick...

But I solved it long back with ur idea of 'mis' using the Message Code....

Thanks anyways....