Jump to content
Macro Express Forums

Variable Limits


Recommended Posts

Cory -


From the book:

String Variables

These store text and can contain anything within the range of nothing, to The Decline and Fall of the

Roman Empire. There are no actual length limits to string variables, but there are both practical limits

and limits outside the control of Macro Express such as hard drive space, environment space and

Registry limits.

Link to comment
Share on other sites

Well that doesn't help much. But it sounds like I won't need to worry for what I am doing. I really need to get some time to read my book. I spent $50 on it and yet I haven't done any more than browse it.

Link to comment
Share on other sites

There is not a real limit to the length of a text string. The longer they are, however, the longer it takes to process them. I suggest that you create a test on a real, real, real long string. Try something like searching for a character, or counting characters in a loop. You will be pleasantly surprised!

Link to comment
Share on other sites

Interesting. I have a project now I'm thinking of trying that out on.


There was a guy asking about replacing all commas in a word document I replied to. I was wondering if one could read the entire file into a ME variable and do a sting replacement and write teh variable out ot a new file. I bet it would work.

Link to comment
Share on other sites

It will be pretty fast. I used the book as a test. Copied the whole thing (16,000 lines) to the clipboard, set T1 from the clipboard, replaced all commas with nothing, and finally saved it back out to a file. The whole process took under a minute.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...