小编nic*_*nda的帖子

使用word宏仅更改三个列表

以下是我目前用于将大型文档重新格式化为公司品牌的宏的摘录.

    Selection.Tables(1).Select
    Selection.Columns(1).Width = CentimetersToPoints(5.46)
    Selection.Columns(2).Width = CentimetersToPoints(10.92)
    Selection.Rows.HeightRule = wdRowHeightAtLeast
    Selection.Rows.Height = CentimetersToPoints(0.8)
Run Code Online (Sandbox Code Playgroud)

我得到的文件现在有三个列表和两个列表,我希望这些列的所有列都是5.46宽,而我需要两个列表以坚持我上面指定的宽度来保持所有格式看起来都不错.

我想放入一个"if,then"类型的语句,说明如果表有三列这样做,如果表有两个,那么这样做但我不知道如何从2列表中识别3个列表.

vba ms-word word-2010

3
推荐指数
1
解决办法
5867
查看次数

使用php将逗号分隔值插入mysql字段

我在将一些行业类别ID上传到我的mysql表中的单个字段时遇到问题.我正在使用php/html.

我的表单是插入我需要的每个值,除了我想插入的NewsIndustryID作为逗号分隔值 - 例如:201,206,209

这是我提交表单时收到的错误消息(如果我将NewsIndustryID字段取出,它可以正常工作):

Warning: mysql_real_escape_string() expects parameter 1 to be string,
array given in /home/coverfor/public_html/dwzUpload/dwzDataBase.php on
 line 426 Error on update record

 Column 'NewsIndustryID' cannot be null

array ( 'table_name' => 'Images', 'fields' => array ( 0 => array (
 'name' => 'Caption', 'value' => 'Test Image Caption', 'type' =>
 'text', 'def_value' => '', 'not_def_value' => '', ), 1 => array (
 'name' => 'NewsIndustryID', 'value' => array ( 0 => '201', 1 => '204',
 2 => '205', …
Run Code Online (Sandbox Code Playgroud)

php mysql arrays

0
推荐指数
1
解决办法
5475
查看次数

标签 统计

arrays ×1

ms-word ×1

mysql ×1

php ×1

vba ×1

word-2010 ×1