Jump to content
Macro Express Forums

Advanced - ASCII Text File Process


Recommended Posts

Good Day, 

I tried to run the example in the Documentation for this and when I do all that copies to my text document is the Variables it does not read the csv file any help would be great.

image.thumb.png.f8b2caa129d086e001604f42a6c2cd22.png


%T2%
%T3%
%T4%
%T5%
%T6%
%T7%
%T8%
%T9%
%T10%
%T11%
%T12%

%T2%
%T3%
%T4%
%T5%
%T6%
%T7%
%T8%
%T9%
%T10%
%T11%
%T12%

%T2%
%T3%
%T4%
%T5%
%T6%
%T7%
%T8%
%T9%
%T10%
%T11%
%T12%

%T2%
%T3%
%T4%
%T5%
%T6%
%T7%
%T8%
%T9%
%T10%
%T11%
%T12%

Link to comment
Share on other sites

Macro Express automatically defines string (text) variable "T" as an array with 99 items.

So you would enter %T% in the ASCII Begin Process command. 

But in your Text Type command, you must specify

%T[1]%

%T[2]%

%T[3]%

%T[4]%

and so on -- brackets around the number.

 

It's possible your macro IS reading the CSV file correctly, but it's just the Text Type command that's wrong.

Link to comment
Share on other sites

rberg is right. 

Also when I open a new macro file I immediately delete the 4 standard variables. It's a holdover from ME3 and I feel one should meaningfully name their variables. Also only make them array variables when an array is needed. 

Link to comment
Share on other sites

On 1/28/2022 at 4:00 PM, rberq said:

Macro Express automatically defines string (text) variable "T" as an array with 99 items.

So you would enter %T% in the ASCII Begin Process command. 

But in your Text Type command, you must specify

%T[1]%

%T[2]%

%T[3]%

%T[4]%

and so on -- brackets around the number.

 

It's possible your macro IS reading the CSV file correctly, but it's just the Text Type command that's wrong.

Thank You, That is Exactly what it was... I appreciate your quick response

Link to comment
Share on other sites

On 1/28/2022 at 4:51 PM, Cory said:

rberg is right. 

Also when I open a new macro file I immediately delete the 4 standard variables. It's a holdover from ME3 and I feel one should meaningfully name their variables. Also only make them array variables when an array is needed. 

Thank you, I did not know they where hold overs. I would also agree with you on the naming of the variables.

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.

Guest
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.

Loading...
×
×
  • Create New...