distance calculate
-
i am trying to calculate the distance between two places. i filled the two combos with source n destination through data reader. Distance between them is also stored in the same reader. anyone can plzz tell me the method to display it on Label. sincerly, Shriya
-
i am trying to calculate the distance between two places. i filled the two combos with source n destination through data reader. Distance between them is also stored in the same reader. anyone can plzz tell me the method to display it on Label. sincerly, Shriya
So you have two combo boxes, and each combination of selections, has a distance stored in your database ? Wouldn't it be more efficient to store their locations and calculate distance ? Anyhow, you need to find the entry in your DB that has this pair of values, so either search the table you have, or select just that one value with the two fields that match. Hard to say more without knowing your DB schema.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog