Account Name, Type and Balance
Posted by Yousef Ibrahim, Last modified by Abdullah Almasharfah on 07 December 2018 09:18 PM


'''#####################################################################################
'''####     Script Name: Account Balance &Account Type                            ######
'''####     Author     : Salah Abu-Ghalyon                                        ######
'''####     Website    : www.Hybrid-solutions.com                                 ######
'''####     Date       : 20/06/2013 12:42:44                                      ######
'''####     Description:Shows your account balance&Type into a message boxes      ######
'''#####################################################################################


Public Sub main() 
Dim property_id as VTLGeneral.ENUM_ACCOUNT_INFO_INTEGER      
Dim Info as VTLGeneral.ENUM_ACCOUNTINFO_STRING 
Dim balance as VTLGeneral.ENUM_ACCOUNT_INFO_DOUBLE 

balance = VTLGeneral.ENUM_ACCOUNT_INFO_DOUBLE.ACCOUNT_BALANCE
Info = VTLGeneral.ENUM_ACCOUNTINFO_STRING.ACCOUNT_FIRST_NAME   
property_id = VTLGeneral.ENUM_ACCOUNT_INFO_INTEGER.ACCOUNT_TRADE_MODE 

ClientCode.AccountInfoInteger(property_id)

IF property_id=1 Then 
GUI.MsgDialog("Demo Account")

ElseIF property_id=2 Then 
GUI.MsgDialog("Contest Account")

ElseIF property_id=3 Then
GUI.MsgDialog("Real Account")


End IF 


GUI.MsgDialog("Account name is: " & ClientCode.AccountInfoString(Info).Tostring())
GUI.MsgDialog("Balance is: " & ClientCode.AccountInfodouble(balance).Tostring())

End Sub 



See Also


Back to VTL Server Script Index

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions