都不行, 直接把表达式当成值显示出来了。
应该怎样写啊?
必须要在程序运行时用代码,setitem 或dw_1. O B J E C T.columnname.Initial="your_initial_value"才行吗?
8 个解决方案
#1
在edit source下去设置
#2
在数据窗上字段有对应的数据类型,如果字符型只需要它需要的字符串,外面不用再加引号的~
#3
找到了,设置为Empty
看来有问题还是有必要先看下帮助
Description
The initial value of the column in a newly inserted row.
Controls
Column controls
Syntax
PowerBuilder dot notation:
dw_control.Object.columnname.Initial
Describe and Modify argument:
"columnname.Initial { = ' initialvalue ' }"
Parameter Description
columnname A string containing the name of the column for which you want to get or set the initial property.
initialvalue A string containing the initial value of the column. Special values include:Empty - A string of length 0Null - No valueSpaces - All blanksToday - Current date, time, or date and time
看来有问题还是有必要先看下帮助
Description
The initial value of the column in a newly inserted row.
Controls
Column controls
Syntax
PowerBuilder dot notation:
dw_control.Object.columnname.Initial
Describe and Modify argument:
"columnname.Initial { = ' initialvalue ' }"
Parameter Description
columnname A string containing the name of the column for which you want to get or set the initial property.
initialvalue A string containing the initial value of the column. Special values include:Empty - A string of length 0Null - No valueSpaces - All blanksToday - Current date, time, or date and time
#4
eidt source下,把它设置为 initial="" 也是可以的,呵呵
#5
新的问题产生了,如果想设置字符型字段的初始值为“empty”,该怎么设置呢?
#7
#8
经试验可以输入 empty+空格,也就是多输入个空格,它就不自动替换为""了。
#1
在edit source下去设置
#2
在数据窗上字段有对应的数据类型,如果字符型只需要它需要的字符串,外面不用再加引号的~
#3
找到了,设置为Empty
看来有问题还是有必要先看下帮助
Description
The initial value of the column in a newly inserted row.
Controls
Column controls
Syntax
PowerBuilder dot notation:
dw_control.Object.columnname.Initial
Describe and Modify argument:
"columnname.Initial { = ' initialvalue ' }"
Parameter Description
columnname A string containing the name of the column for which you want to get or set the initial property.
initialvalue A string containing the initial value of the column. Special values include:Empty - A string of length 0Null - No valueSpaces - All blanksToday - Current date, time, or date and time
看来有问题还是有必要先看下帮助
Description
The initial value of the column in a newly inserted row.
Controls
Column controls
Syntax
PowerBuilder dot notation:
dw_control.Object.columnname.Initial
Describe and Modify argument:
"columnname.Initial { = ' initialvalue ' }"
Parameter Description
columnname A string containing the name of the column for which you want to get or set the initial property.
initialvalue A string containing the initial value of the column. Special values include:Empty - A string of length 0Null - No valueSpaces - All blanksToday - Current date, time, or date and time
#4
eidt source下,把它设置为 initial="" 也是可以的,呵呵
#5
新的问题产生了,如果想设置字符型字段的初始值为“empty”,该怎么设置呢?
#6
http://hi.csdn.net/attachment/201112/5/167635_1323062198B31E.jpg
直接在datawindow, initial输入想要的初始值。
直接在datawindow, initial输入想要的初始值。
#7
#8
经试验可以输入 empty+空格,也就是多输入个空格,它就不自动替换为""了。