Announcement

Collapse
No announcement yet.

Problems with Array Sort

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problems with Array Sort

    Hi

    I'm having problem with ARRAY SORT(). I have 21 entries but when I come to sort them only the first
    17 entries are sorted. When I come to print out the sort the first 4 entries are reported to be 0.0.

    Any ideas what's happening and how to correct this problem?

    Fred K

    ------------------

    #2
    Kinda sparce info to go on. How about posting a code snippet
    and let's take a look at it.


    ------------------
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


      #3
      Originally posted by Fred Katzel:
      I'm having problem with ARRAY SORT(). I have 21 entries but when I come to sort them only the first
      17 entries are sorted. When I come to print out the sort the first 4 entries are reported to be 0.0.

      Any ideas what's happening and how to correct this problem?
      Well, since all variables are initialized to zero or nul, it's highly likely that only 17 array elements have been assigned non-zero values. The other four are likely untouched. I'd suggest you first take a very close look at that possibility.

      Bob Zale
      PowerBASIC Inc.


      ------------------

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎