DRAWTEXT avec une variable

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #144637 quote
    gfx
    Participant
    Average

    Bonjour à toutes, tous,

    J’ai découvert la function  DRAWTEXT que j’utilise comme ci après

    DRAWTEXT("HELLO", barindex,high[1],SansSerif,Bold,16) COLOURED(204,0,204)

    J’aimerais ajouter au texte statique entre “”,  une variable. En d’autres termes une concaténation. J’ai essayé plusieurs options sans succès

    DRAWTEXT("IB" + "T", barindex,high[1],SansSerif,Bold,16) COLOURED(204,0,204)
    DRAWTEXT("IB" & "T", barindex,high[1],SansSerif,Bold,16) COLOURED(204,0,204)
    DRAWTEXT("IB" AND "T", barindex,high[1],SansSerif,Bold,16) COLOURED(204,0,204)

    Une idée ?

    Merci

    #144638 quote
    Nicolas
    Keymaster
    Master

    Le titre du sujet n’était pas explicite. Merci d’y songer la prochaine fois !

    Pour ajouter une variable dans un text il faut ajouter un # avant et après le nom de la variable, voir explication dans la documentation : https://www.prorealcode.com/documentation/drawtext/ (exemple 3)

    exemple:

    var = close
    
    DRAWTEXT("ma variable = #var#", barindex,high[1],SansSerif,Bold,16) COLOURED(204,0,204)

     

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

DRAWTEXT avec une variable


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
gfx @gfx Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
5 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/18/2020
Status: Active
Attachments: No files
Logo Logo
Loading...