Still the same result: null :(Have you tested your code snippet before posted here? Does it run properly? If yes, which version of XE you are using ? Can you test my code in your XE and tell me the result ?