CallHbFunc

good Afternoon

So I have a function that does a search on my database. Thanks to CALLHBFUNC command I can use it in FASTREPORT.
When I do a simple search, passing only one parameter to my function returns me the correct value. When I have to pass a double parameter, COD + TIP, my function returns the empty value.
example:

[CallHbFunc ('Search', [["100" + <Group of Produto."PRO_FAMCOD">], 'TABARRAY', 'TAB_NOM', 'Code'])] it returns blank.

[CallHbFunc ('Search', [[<Group of Produto."PRO_FAMCOD">], 'TABARRAY', 'TAB_NOM', 'Code'])] - it returns correct.

I need to pass the parameter 100 (of character) to find the correct value in my database "TABARRAY."

My search function has the following parameters.
1 - the variable
2 - Database
3 - what field of return.
4 - Index

Thanks for the help.
Diogenes A. Gutierrez
Brazil - SP

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.