Syntax
Public Function ObjectBitMap(chart_ID As Long, win As Long, name As String, price1 As Double, time1 As String, fileName As String, text As String) As Boolean
Description
This function is used to add Bit map photo to chart with the specified name.
Parameters
Key | Description |
chart_Id | Chart identifier, 0 is the current chart, the value of type Long |
win | Chart subwindow, the value of type Long. |
name | Object key, the value of type String. |
price1 | The price coordinate of the point, the value of type Double. |
time1 | The time coordinate of the anchor, value of type String. |
fileName | The photo name and must be inside this path (C:user”your pc name”AppDataRomingvertexFX Client Terminals”client”VTL10image),value of type String. |
text | Object text at the photo, the value of type String. |
Return value
Returns true if the object is created. Otherwise returns false. In order to get an error, call GetLastError() function.
Return value
Returns a substring.
Sample
'Image must be a bitmap image'Path of the image : ..VTL10ImagesSub Main()If not ObjectBitmap(0,0,"bitmap2",1.3599,"13/01/2012 00:00:00","Smiley.bmp","Pic2") Then AlertMessage ErrorDescription(GetLastError())Else AlertMessage "Done"End IfEnd Sub
See Also