retesere20

ts-array-reverse-error

Dec 4th, 2020
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ####### a1 ##########
  2.  
  3. array: aaa[]("");
  4. if lastbaronchart then once Begin
  5. condition1= Array_setmaxindex(aaa, 4);
  6. aaa[0]= "a";
  7. aaa[1]= "b";
  8. aaa[2]= "c";
  9. aaa[3]= "d";
  10. aaa[4]= "f";
  11. value1=arrayreverse (aaa);
  12. print("1",aaa[0]);
  13. print("4",aaa[4]);
  14. print("_AeeRRAY_", array_getmaxindex(aaa) );
  15. end;
  16.  
  17.  
  18. ####### arrayreverse ########
  19. inputs:
  20. array_[MaxSize_]( stringarrayref );
  21. array: array_copied_[]("");
  22.  
  23. vars: count_to_(0);
  24. count_to_=MaxSize_;
  25.  
  26. condition1 = array_setmaxindex(array_copied_, MaxSize_);
  27. value1 = array_copy(array_[MaxSize_], 0, array_copied_, 0, MaxSize_);
  28. print("^^1", array_copied_[0]);
  29.  
  30.  
  31.  
RAW Paste Data