Would I use a SQL query to convert it? What does everyone recommend?
73
KU3V

Code: Select all
update log set distance = distance * <conversion factor>
Code: Select all
try
{
string myGrid = qso.MyGridsquare;
string targetGrid = qso.Gridsquare;
if (string.IsNullOrEmpty(myGrid))
{
myGrid = Storage.TheUserConfiguration.My_gridsquare;
}
if (string.IsNullOrEmpty(targetGrid))
{
Country tempCountry = Storage.TheCountries.GetByDxcc(qso.Dxcc);
targetGrid = MaidenheadLocator.ObtainLocatorFromCountry(tempCountry);
}
if (string.IsNullOrEmpty(myGrid) == false && string.IsNullOrEmpty(targetGrid) == false)
{
qso.Distance = (int)MaidenheadLocator.Distance(myGrid, targetGrid);
qso.AntAz = (int)MaidenheadLocator.Azimuth(myGrid, targetGrid);
qso.Action = QsoAction.Update;
qso.Dirty = true;
}
}
catch
{
}
Actually its easyKU3V wrote:How can I convert all the distance data listed in miles to km?
Would I use a SQL query to convert it? What does everyone recommend?
73
KU3V
IW3HMH wrote:pfff Terry... it's too easy!