Jump to content
Macro Express Forums

mfseeker

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by mfseeker

  1. Arrrgh!! I can't get my own solution to work for me. Here is a sample that fails. Variable Set String %StringText% to "some words" Repeat Start (Repeat 10 times) Variable Modify String: Copy a substring in %StringText%, starting at %Index% and 1 characters long to %Letters[%Index%]% End Repeat %StringText% is a string variable. %Index% is an integer variable. %Letters% is a string array variable. This results in an empty %Letters% array. If I modify the code to target %Letters[1]%, it leaves %Letters[1]% with the value "s", as expected. Surely there must be a way to index an array with an integer variable. What am I missing here?
  2. Thanks Terry. That is certainly the best way. I had even looked at the help for Text Type to see whether this would be possible, but I was in too much of a hurry. I see now that it is plainly documented there. I have only been working with this new Macro Express Pro for a couple of days. I sure do like it. My upgrade purchase is coming right up.
  3. Thanks Jeff. I found this 10 seconds before I received your reply. I first thought putting the command under Clipboard commands was more logical. After all, the variable is not "modified." But there are many analogous commands under "Variable Modify String" which copy but don't change the string, so I see how it makes sense--even if the title of the command group is a tad misleading to the slow-witted among us.
  4. How do I get the contents of a string variable into the clipboard for pasting into my target document? There must be a way, but I seem to be in a brain fog.
  5. In the Script Editor dialogs that include a "Variables" button there is a problem. These buttons bring up a sub-dialog "Insert Variable". This dialog will allow an array variable to be chosen from a list of available variables. Left clicking the desired variable will place its name in the "Variable Name:" field (without enclosing %s) suffixed with a pair of empty square brackets. An appropriate index must be typed within those brackets. The program will only accept digits. Therefore, it might seem that an array could not be indexed by a variable. If that were the case, we would be unable to step through precessing each element of an array within a repeat block. However, there is a simple solution. Enter a dummy integer index in the square brackets. Close the sub-dialog "Insert Variable". Now in the original dialog, replace the dummy index with the name of the indexing variable enclosed within %s. The result will look something like this: %StringArray[%ArrayIndex%]"%. Now within a Repeat block we will be able to step through processing each element of the array %StringArray%.
  6. Direct Editor is damnably hard to read. Commands are delimited by ASCII 01, and the text appears as a single unbroken block. Does anyone know of an external editor that can be configured to wrap lines at ASCII 01? Of course, you can configure most any external editor to insert CR/LF's after the ASCII 01's and then remove them at the end of the edit session. However, in a normal revise, test, revise, test cycle, the extra steps are intolerable. Thanks PS The situation can be improved slightly by using a larger font size, but the program cannot remember that size between sessions.
×
×
  • Create New...