justout
1st April 2003, 13:03
Hi,

Need to get the text of a Question defined in the DD without using ask.enum(). Basically like form.text$() but that works only for messages.

How do I do it.

Thanks a lot.

evesely
1st April 2003, 16:36
The only way I know to do this is to look up the value from the ttadv461 table. If you are unsure of the VRC in which the question resides, you can use the function vrc_search_ques() in DLL ttdllvrcsearch:


function extern long vrc_search_ques(
domain ttaad.clan clan,
domain ttadv.cpac cpac,
domain ttadv.cque cque,
long tdep,
ref domain ttadv.vers tver() fixed,
ref domain ttadv.rele trel() fixed,
ref domain ttadv.cust tcus() fixed )

function extern long vrc_search_ques2(
domain ttadv.cpac cpac,
domain ttadv.cque cque,
long tdep,
ref domain ttadv.vers tver() fixed,
ref domain ttadv.rele trel() fixed,
ref domain ttadv.cust tcus() fixed )


I hope that helps.

justout
1st April 2003, 17:09
Thanks Ed,

Will give it a try and let you know.

Btw, on this topic I found another similar post which said this:

Was browsing through some code (5.0c ttdllhypertext) and found the following:



code: --------------------------------------------------------------------------------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



Regards!

justout
2nd April 2003, 14:28
Hi,

The ttdllhypertext worked!! Thanks or the help!

JO!!

evesely
2nd April 2003, 16:46
BTW, on 4c4 the DLL function is slightly different:

function extern long read.ques.desc(
string arg(40),
ref string desc(),
[ domain ttaad.clan clan ],
[ long develop ] )

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)
post: true - desc filled with question description
false - desc is empty