// Analytic: EDIT_SYM
// ----------------------------------------------------------
FTStr s, param, val;
char oldsym[100] = "";
char newsym[100]="";
char tst[100] = "";
double shares;
// bring up the dialogue box and save the data entered by the user into s
// ----------------------------------------------------------------------
bool flag = Prompt_Dlg("EDIT_SYM",s);
if (!flag)
return false;
// grab the data out of s; do this by iterating through each field
// ---------------------------------------------------------------
while(s.Get_Param_Sval(param, val))
{
if (param == "Symbol") {
strncpy(oldsym,val.str(), strlen(oldsym)+1);
}
if (param == "NewSymbol") {
strncpy(newsym,val.str(), strlen(newsym)+1);
}
}
// Add new symbol
//Get_Column_Str(tst, "PORTFOLIO");
//Get_Sym_Column_Value(oldsym, "UNORD SHARES", shares);
Add_Symbol_Buy("BLMatrixb0106:",newsym, 939);
Del_Symbol("BLMatrixb0106",oldsym);
// Output the data we got as a string to some other column
// -------------------------------------------------------
//Set_Column_Str("DLGOUT",tst);
return 1;