Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Inventor API > Re: SoMFString ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 12 Topic 471 of 504
Post > Topic >>

Re: SoMFString Question

by "Volker Enderlein" <volker@[EMAIL PROTECTED] > Nov 9, 2006 at 05:10 PM

On Thu, 09 Nov 2006 16:58:14 +0100, <tom_kuehnert@[EMAIL PROTECTED]
> wrote:

> Thanks for the fast answer :)
>
> I tried accessing the fields by the [] operator already. Sadly, I get
> an exception which caused me to suspect that not all the messages were
> put into the "array" (and so the index cannot be >0).
>
> However, should it work to fill the "array" with the .set method
> (inbox.set("\"msg1\"\"msg2\"\"msg3\"")); ?
>

I don't know what the set method does, but

int SoMField::getNum ( void ) const [inline]
returns number of values in this field.

so you can easily look if all your strings were added to the string array.
IIRC the strings are separated by a comma. So

inbox.set("\"msg1\", \"msg2\", \"msg3\"") should work.

Cheers Volker

-- 
Volker Enderlein
 




 12 Posts in Topic:
SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 07:07:59 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 16:48:05 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 07:58:14 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 17:10:06 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 08:23:25 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-09 17:42:04 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-09 08:25:51 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-10 07:06:42 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-10 16:43:48 
Re: SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-11-12 03:10:05 
Re: SoMFString Question
"Volker Enderlein&qu  2006-11-13 00:33:01 
NEW SoMFString Question
tom_kuehnert@[EMAIL PROTE  2006-12-09 13:27:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 1:18:42 CST 2008.