I prefer doing it like this:
ZipCode zipCode;
if (DataSource1_DS.getFirst(true))
zipCode = DataSource1_DS.getFirst(true);
while(zipCode)
{
//zipCode.DoSomething()
zipCode = DataSource1_DS.getNext();
}
Morten, CSY J
From: byteway_so
[mailto:[EMAIL PROTECTED]
Sent: 5. februar 2004 09:32
To:
[EMAIL PROTECTED]
Subject: [development-axapta] Re:
read multi row select
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);
}
}
| Yahoo! Groups Sponsor |
ADVERTISEMENT
![click here]() | |
![]() |
Yahoo! Groups Links
|