以下是引用xfqzyh在2018-10-10 11:13:34的发言:
假如有三个label,且每个的字符个数相同,如中英字混合或填空个数的不同会出现label的width不同。
大概意思是这样:
图片附件: 游客没有浏览图片的权限,请
登录 或
注册
CLEAR
CLEAR ALL
s = "自2017年7月1日起,购买方为企业A的,索取增值税普通发票时,应向销售方提供B纳税人识别号"
ALINES(arr, s, "A","B","C")
_screen.AddObject("label1","label")
_screen.label1.caption = arr[1]
_screen.label1.autosize = .T.
_screen.label1.visible = .T.
nleft = _screen.label1.width
_screen.AddObject("text1","textbox")
_screen.text1.Left = nleft
_screen.text1.visible = .T.
nleft = nleft + _screen.text1.width
_screen.AddObject("label2","label")
_screen.label2.caption = arr[2]
_screen.label2.left = nleft
_screen.label2.autosize = .T.
_screen.label2.visible = .T.
nleft = nleft + _screen.label2.width
_screen.AddObject("text2","textbox")
_screen.text2.Left = nleft
_screen.text2.visible = .T.
nleft = nleft + _screen.text2.width
_screen.AddObject("label3","label")
_screen.label3.caption = arr[3]
_screen.label3.left = nleft
_screen.label3.autosize = .T.
_screen.label3.visible = .T.
[此贴子已经被作者于2018-10-10 15:01编辑过]