Check array contents visually?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #159139 quote
    robdav
    Participant
    Veteran

    Hi

    How can we visually check the contents of an array please?

    Is it possible to use DRAWTEXT to loop through the array and output the values by using the using the # functionality?

    DRAWTEXT(“#$array[i]#",Barindex,0)Or something similar?

    I’m creating arrays but have no idea if they are correct 🙁

    Many thanks

    Rob

    #159140 quote
    JC_Bywan
    Moderator
    Master

    You need to go through an intermediate variable, let’s name it “a”, and write a=$array[i] just before your drawtext line, then use #a# inside the drawtext line, see example from Nicolas on page 2 of the array topic, lines 30-33 of the code in his post #120663 page 2: https://www.prorealcode.com/topic/array-variables-availability-in-prorealtime/page/2/#post-120663

    robdav thanked this post
    #159141 quote
    robdav
    Participant
    Veteran

    Thanks Noobywan, I missed that when I went through the examples. That’s a great help. Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Check array contents visually?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robdav
5 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/23/2021
Status: Active
Attachments: No files
Logo Logo
Loading...