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
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

