Hi,
Origin7.5 does not support the usage in Set Column Value dialog yet.
We suggest you upgrade to newest Origin version 81, which contains many other improvements.
As to O75, please use the following function to call Larry's Dec2Hex function. Run "ConvertHelper(1, 2)" in script window.
void ConvertHelper(int nSourceColIndex, int nDestColIndex) // this index is 1 offset
{
// The index offset is 0 in Origin C
nSourceColIndex--;
nDestColIndex--;
Worksheet wks = Project.ActiveLayer();
if( !wks || !wks.Columns(nSourceColIndex) || !wks.Columns(nDestColIndex) )
{
out_str("No acitve worksheet or input column is invalid");
return;
}
Column colSource(wks, nSourceColIndex), colDest(wks, nDestColIndex);
Dataset dsSource(colSource), dsDest(colDest);
vector<string> vsHex;
for(int nn = 0; nn < dsSource.GetSize(); nn++)
{
string strHex = Dec2Hex(dsSource[nn]);
vsHex.Add(strHex);
}
dsDest.PutStringArray(vsHex);
}
Iris