Click here to Skip to main content
15,924,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

Concatenate the \n character to the end of your string line breaks.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900