Home » Community » Newbie corner » fills the DropList from VectorMap
fills the DropList from VectorMap [message #36159] |
Mon, 07 May 2012 22:20 |
idkfa46
Messages: 155 Registered: December 2011
|
Experienced Member |
|
|
Hi all,
how can I fill a DropList from VectorMap ?!
DropList manual speak about this function:
void Add(DropList& list, const VectorMap<Value, Value>& values)
but when i try to use it I receive the following error:
"function does not take 2 arguments"
...
VectorMap<Value, Value> GetMap(DropList const &dl)
{
VectorMap<Value, Value> res;
for(int i = 0; i < dl.GetCount(); i++)
res.Add(dl.GetKey(i), dl.GetValue(i));
return res;
}
void m::Xmlize(XmlIO &xml)
{
if(xml.IsLoading())
{
VectorMap<Value, Value> v;
xml("name", v);
dropList.Clear();
Add(dropList, v);
}
else
{
...
C:\MyProve\m\main.cpp(34) : error C2660: 'Upp::Ctrl::Add' : function does not take 2 arguments
m: 1 file(s) built in (0:01.80), 1809 msecs / file, duration = 1809 msecs, parallelization 0%
There were errors. (0:01.90)
Line 34 : Add(dropList, v);
Regards,
Matteo
|
|
|
Goto Forum:
Current Time: Wed Jun 05 06:31:44 CEST 2024
Total time taken to generate the page: 0.02261 seconds
|