converting string to uLong

 

hi everyone,

please help me to convert string variable to uLong Variable 

i save the ticket number of the opened buy trade as a string in the database 

and i want to retrieve it in function in the expert to close that position 

how can i close that position without using trade.positionClose(symbol)