[gme-users] How SetAttribute may fail

Cong Zhang czhanga at gmail.com
Thu Jan 5 16:15:11 CST 2006


Try the code like in the following:(suppose you want to set an
attribute called "rate")

CString attrname("rate");
model->SetAttribute(attrname, "something");

It seems that I failed if I used
model->SetAttribute("rate", "something");

On 1/5/06, Jane Lin <liny at cis.uab.edu> wrote:
> Hi,
>
> In my GME plug-in component written with BON1, I tried to called the
> SetAttribute method of the CBuilderObject class to set a value to an
> attribute of a model, which type is string. But it failed. I could see the
> return result of this method call was false. What does this mean possibly?
> How can I debug this?
>
> Thanks,
>
> Jane
> ---------------------------------------------------------------------------------
> Yuehua (Jane) Lin
> Department of Computer and Information Sciences
> University of Alabama at Birmingham
> liny at cis.uab.edu
> http://www.cis.uab.edu/liny
>
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>
>


More information about the gme-users mailing list