Hmm... I think this should be in the darkbasic chat, but oh well.
The only way I know of to find the height of a .x object is using Intersect Object. You would use the command like this:
height# = 1000 - intersect object(1, x#,1000,z#, x#, -1000, z#)
In case you dont know how this command works, this would draw a vertical line at x#,z#, and see what the distance from the terrain is. Note that if your level's maximum height goes about 1000, you will have to change this number to a different one. Also note that if x#,z# is not on your level, the raycast will totally miss it, and return a 0, and in this example, give the terrain a height of 1000.