Solved

put.. only part of string in text file

  • 4 June 2019
  • 1 reply
  • 47 views

Userlevel 1
Hi,

I have this code that prints the variables to a text file.

code:
for IndexVariables do
put(IndexVariables);
put // ;
endfor;


This prints only the first 12 characters of each variable.
Why is that?

Thanks, WM
icon

Best answer by deannezhang 5 June 2019, 03:18

View original

1 reply

Userlevel 4
Badge +3
The default column width of put statement is 12. You can change it by :m, where m is the new width. for example

for IndexVariables do
put IndexVariables:15;
put // ;
endfor;

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator