r.SetData(fldActive, active);
if(NotifyNew(master, this, r))
- list.currentRow = list.AddString("$[New]");
+ list.currentRow = list.AddString($"[New]");
delete r;
}
{
if(lf.field.type == class(String))
{
- r.SetData(lf.field, "$[New]");
+ r.SetData(lf.field, $"[New]");
}
}
}
}
else if(idField && stringField)
{
- r.SetData(stringField, "$[New]");
- list.AddString("$[New]").tag = id;
+ r.SetData(stringField, $"[New]");
+ list.AddString($"[New]").tag = id;
}
delete r;
}
}
else
{
- sprintf(tempString, "$(Click to add a new %s...)", $"item"/*class_data(addText)*/);
+ sprintf(tempString, $"(Click to add a new %s...)", $"item"/*class_data(addText)*/);
}
delete r;
}
{
SetDefaultIdField("ID");
SetDefaultNameField("Name");
- //ds = DataSource { driver = "SQLite" };
- //db = database_open(ds, "collection");
- ds = DataSource { driver = "Oracle", host = "localhost", port = "1521", user = "test", pass = "test" };
- db = database_open(ds, "xe");
+ ds = DataSource { driver = "SQLite" };
+ //ds = DataSource { driver = "Oracle", host = "localhost", port = "1521", user = "test", pass = "test" };
+
+ db = database_open(ds, "collection");
}
~MovieCollectionApp()
{