简体   繁体   English

如何在窗口的下拉框中使用逗号(,)显示数据?

[英]How can I show the data with comma(,) in drop down box on window?

I have written the program to show all the data on window but stuck in the case for showi a single record with comma(,) in drop down box. 我编写了程序以在窗口上显示所有数据,但在下拉框中将逗号(,)留在了showi的情况下,将其卡在了showi中。 Let me share codes what i tried. 让我分享我尝试过的代码。

DEFINE TEMP-TABLE tt_seq_report
FIELD npai_output_expression    AS CHARACTER FORMAT "X(50)".

/* Followings are written inside the drop down box using progress app builder */ 
/* ON VALUE CHANGED      OF   coCombo-4    Part Type(Label Name) */                               
DO:

  DEFINE VARIABLE cPartTyp AS CHARACTER NO-UNDO.
  CREATE tt_seq_report.
  ASSIGN 
  tt_seq_report.npai_attribute_expression = "22+++,56-".

  coCombo-4:ADD-LAST(tt_seq_report.npai_attribute_expression).

END.

When I run the window and select the drop down box then i can see the value upto before comma(,) ie 22+++ but it should show the full value like 22+++,56-. 当我运行窗口并选择下拉框时,我可以看到逗号(,)之前的值upto,例如22 +++,但它应该显示完整的值,例如22 +++,56-。 May I get any help regarding this? 我可以在这方面得到任何帮助吗?

You can set the combo-box'es DELIMITER property to any other character. 您可以将组合框的DELIMITER属性设置为任何其他字符。 Comma is just a default. 逗号只是默认设置。

"Delimiter character can have any ASCII value from 1 to 127. The default delimiter is a comma." “分隔符可以具有1到127之间的任何ASCII值。默认的分隔符是逗号。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM