Hi,
I need to read a value using a select DQL and pass 1 less than its value (value is a number) to a string variable in docbasic script (dm_event_sender.ebs).
How can I do this? Please correct the following and post it if you are an expert in docbasic script.
query_str4 = "select current_value from number_sequence where object_name='New Cust Setup Num Seq'"
colid$=dmAPIGet("readquery,c," & query_str4)
Do
ECRNum=Str(dmAPIExec("next,c," & colid$))
Print # 2, "Value: " & ECRNum
Exit Do
Loop
Please share your knowledge and experiences for figuring this out.
Thanks.
ta