将富文本框控件连接到单个文件中 [英] Concatenating Rich Textbox Controls Into A Single File

查看:111
本文介绍了将富文本框控件连接到单个文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Access 2000中使用MS Rich Textbox Control 6.0,我需要将几个RTB控件连接到一个RTF文件中。有时两个字符串将是并排的b $ b;其他时候他们需要通过艰难的回报分开。


例如,假设我的表格中有以下4个RTB控件:


RTB1 =" abcd"

RTB2 =" efgh"

RTB3 =" ijkl"

RTB4 =" mnop"


生成的RTF文档可能需要如下所示:


abcdefgh


ijkl


mnop


使用SaveFile方法适用于单个RTB控件。但是怎样才能将两个或多个控件的内容连接成一个RTF文件,

以及如何在文本集之间插入硬回车?


谢谢!


Neil

Using the MS Rich Textbox Control 6.0 in Access 2000, I need to concatenate
several RTB controls into a single RTF file. Sometimes two strings will be
side-by-side; other times they need to be separated by a hard return.

For example, say I have the following 4 RTB controls in my form:

RTB1 = "abcd"
RTB2 = "efgh"
RTB3 = "ijkl"
RTB4 = "mnop"

The resulting RTF document might need to look like this:

abcdefgh

ijkl

mnop

Using the SaveFile method works great for a single RTB control. But how can
I concatenate the contents of two or more controls into a single RTF file,
and how can I insert hard returns between sets of text?

Thanks!

Neil

推荐答案

6月7日,11日:上午49点,尼尔 < nos ... @nospam.netwrote:
On Jun 7, 11:49 am, "Neil" <nos...@nospam.netwrote:

在Access 2000中使用MS Rich Textbox Control 6.0,我需要连接

将几个RTB控件转换为单个RTF文件。有时两个字符串将是并排的b $ b;其他时候他们需要通过艰难的回报分开。


例如,假设我的表格中有以下4个RTB控件:


RTB1 =" abcd"

RTB2 =" efgh"

RTB3 =" ijkl"

RTB4 =" mnop"


生成的RTF文档可能需要如下所示:


abcdefgh


ijkl


mnop


使用SaveFile方法适用于单个RTB控件。但是怎样才能将两个或多个控件的内容连接成一个RTF文件,

以及如何在文本集之间插入硬回车?


谢谢!


Neil
Using the MS Rich Textbox Control 6.0 in Access 2000, I need to concatenate
several RTB controls into a single RTF file. Sometimes two strings will be
side-by-side; other times they need to be separated by a hard return.

For example, say I have the following 4 RTB controls in my form:

RTB1 = "abcd"
RTB2 = "efgh"
RTB3 = "ijkl"
RTB4 = "mnop"

The resulting RTF document might need to look like this:

abcdefgh

ijkl

mnop

Using the SaveFile method works great for a single RTB control. But how can
I concatenate the contents of two or more controls into a single RTF file,
and how can I insert hard returns between sets of text?

Thanks!

Neil



在这种情况下,假设格式是常量:


wkText = RTB1& RTB2& vbCrLf& vbCrLf& RTB3& vbCrLf& vbCrLf&

RTB4

vbCrLF是回车/换行的VB常量简写

组合。


您还可以连接''Chr

In this case, and assuming the format is constant:

wkText = RTB1 & RTB2 & vbCrLf & vbCrLf & RTB3 & vbCrLf & vbCrLf &
RTB4

vbCrLF is the VB constant shorthand for the carriage return/linefeed
combination.

You could also concatenate ''Chr


(13)& Chr
(13) & Chr


(10)''而不是

常数。如果结构是可变的,实际的串联

序列将更复杂但通常是可解决的。内联''如果''

语句对于这些谜题非常有用。


iif([something],concatenate&" some事物,连接&其他

&事情)


运气不好!


Chi King of Chi

(10)'' instead of the
constant. If the structure is variable, the actual concatenation
sequence will be more complex but usually solvable. The inline ''If''
statement is quite useful for these puzzles.

iif([something],"concatenate" & "some things","concatenate" & "other"
& "things")

Lucks to yas!

Ron King of Chi


这篇关于将富文本框控件连接到单个文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆