Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM array output contains extra [enter]
#2
Looks normal Ron. Arrays always have an empty line at that end.

can convert back to string and then trim the string,then out or can use a function like this

Function outARRAY
Code:
Copy      Help
;/
function ARRAY(str)&a

str s=a
if(s.len) s.fix(s.len-2)
out s
 
Code:
Copy      Help
int i; str
ARRAY(str) a
for i 0 10
,a[]=i
// examples how to output an array with no empty line at end
outARRAY(a)
//or
b=a
b.trim
out b


Messages In This Thread
QM array output contains extra [enter] - by r0n - 09-11-2020, 05:32 AM
RE: QM array output contains extra [enter] - by Kevin - 09-11-2020, 12:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)