【问题标题】:Progress 4GL report with centered header带有居中标题的进度 4GL 报告
【发布时间】:2017-06-29 14:04:17
【问题描述】:

如何创建带有居中标题的报告?在标题中我也想放一个变量。

【问题讨论】:

  • 您需要更多信息才能回答这个问题。它是基于字符的还是基于网络的?到目前为止,您尝试过什么?

标签: openedge progress-4gl


【解决方案1】:

在普通的旧 4GL 中,您可以使用 AT 指定帧中字段的左边缘或使用 TO 指定右边缘。

在框架内没有使字段居中的属性。

你最终会编写类似这样的代码:

define variable middle as character no-undo format "x(40)".

middle = "some text".

display
  "left" at 1 middle at 20 "right" to 80 skip
with frame hdrFrame1 with no-labels.

pause.

middle = fill( " ", integer( 20 - ( length( middle ) / 2 ))) + middle.

display
  "left" at 1 middle at 20 "right" to 80 skip
  with frame hdrFrame2 no-labels.

(假设宽度为 80 个字符,“中间”字段为 40 个字符...)

如果您使用精美的报告生成器或创建 HTML,那么这些工具有自己的解决方案。

【讨论】:

    猜你喜欢
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多