Jump to content
Sign in to follow this  
Monty

Assigning long varaibles...please help!

Recommended Posts

Monty

Is it possible to, or does anyone know how to assign the content of a really long document as a variable? Document could contain lets say 2000 words.

Share this post


Link to post
Share on other sites
Hawkwing

$var = FileRead("path")?


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites
Adamrv1

the max length of a string is 2147483647 so, assuming the previous statement works, there should be no problem.


Share this post


Link to post
Share on other sites
Monty

Thank you for replying all, but I was after something else.

My mistake that I did not phrase the question correctly...sorry.

Now what I am actually after is storing a long file in a script, so at the press of a button, it will create the file or put it on clipboard, or something. I know I can do...

$var = "bla bla bla" & _

"bla bla bla" & _

and so on but the document are way to long (but under 2147483647) and frequently edited.

Share this post


Link to post
Share on other sites
Hawkwing

If you want something to be "stored" in a script so that it's still there after the script is closed, you would have to create a file with the data to be stored and fileread that into a variable when the script starts.


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.