暗淡的例子作为字符串 [英] dim example as string=
本文介绍了暗淡的例子作为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我知道带暗淡的工作原理
但是有可能
做类似的东西
暗长代码为字符串="if bla bla bla
然后
bla bla bla
如果结束,
然后在我的项目中,我可以使用[长代码]
我尝试批量工作
音量:
如果bla bla bla
然后
bla bla bla
如果结束,
后来在我的项目中,我称音量
这是一个愚蠢的问题吗?
Hi all
i know how it works w/ dim
but is it possible
to make something like
dim long-code as string = "if bla bla bla
then
bla bla bla
end if"
then in my project i can use [long-code]
i tryed to work in volumes for example
volume:
if bla bla bla
then
bla bla bla
end if"
and later in my project i call volume
is this a stupid question?
推荐答案
将\n
字符连接到字符串换行符的末尾.
Concatenate the \n
character to the end of your string line breaks.
谢谢它的工作原理还需要_understore作为换行符
现在的问题是如何调用和执行字符串
看起来像是读取字符串是唯一的可能性
上课是更好的方法吗?
我只是实验
thanks it works also need the _understore as linebreak
now the problem is how to call and execute the string
it look likes reading the string is the only posibility
is making a class a better way?
i''m just experiment
这篇关于暗淡的例子作为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文