Cory Posted November 30, 2005 Report Share Posted November 30, 2005 How much data can be stuffed into a string variable? Quote Link to comment Share on other sites More sharing options...
joe Posted December 1, 2005 Report Share Posted December 1, 2005 Cory - From the book: String VariablesThese 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. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 1, 2005 Author Report Share Posted December 1, 2005 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. Quote Link to comment Share on other sites More sharing options...
joe Posted December 2, 2005 Report Share Posted December 2, 2005 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! Quote Link to comment Share on other sites More sharing options...
Cory Posted December 2, 2005 Author Report Share Posted December 2, 2005 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. Quote Link to comment Share on other sites More sharing options...
joe Posted December 2, 2005 Report Share Posted December 2, 2005 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. Quote Link to comment Share on other sites More sharing options...
Cory Posted December 2, 2005 Author Report Share Posted December 2, 2005 Excellent. Good to know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.