Hi,

Use common.(fieldId2Ext(fieldId, 0)).
In case of a normal field, use 0
In case of an array field, use the array number instead of 0

FieldId variable is the field ID of the field you want to access.


Gert Neetesonne
Technical Product Manager
Edan Business Software





>From: "byteway_so" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [development-axapta] Re: read multi row select
>Date: Thu, 05 Feb 2004 08:31:37 -0000
>
>Thanks for your reply.
>But how do i read the field values of this common variable?
>It does not work if I add a variable for the table, i.e. the zipcode
>table. Can you please shed your light over this too?
>
>void clicked()
>{
>     Common tmpDS;
>     ZipCode zipCode;
>     ;
>
>     if (DataSource1_DS.getFirst(true))
>     {
>     for ( tmpDS = DataSource1_DS.getFirst(true); tmpDS; tmpDS =
>DataSource1_DS.getnext())
>     {
>         //do something with the selected lines
>         //Box::info(tmpDS.ZipCode()); //-> this does not work
>         Box::info( zipCode.ZipCode);
>     }
>     }
>     else
>     {
>         //only one line selected
>         //Box::info(tmpDS.ZipCode());//-> this does not work
>         Box::info( zipCode.City);
>     }
>}
>
>
>

_________________________________________________________________
Al aan je vakantie gedacht? http://www.msn.be/reizen



Yahoo! Groups Links

Reply via email to