Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IF condition
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00344657
Message ID:
00344664
Views:
19
>Hi all,
>
>Is there another way to do this?
>
>if pnTipoPrcTer=1
>this.parent.LinPrUnit.Value=artigos.n_pvp1
>endif
>if pnTipoPrcTer=2
>this.parent.LinPrUnit.Value=artigos.n_pvp2
>endif...

what about
this.parent.LinPrUnit.value = eval("artigos.n_pvp"+allt(str(pnTipoPrcTer)))

...Y soy feliz, bien feliz, asi lo grito;
Mira, que el mundo sepa, que se sepa:
Soy feliz....                       

...And I'm happy, quite happy, so do I yell it;
Look, so the world knows it, so be known:
I'm happy...
 

Ismael Rivera "Oye cosita linda"
Previous
Reply
Map
View

Click here to load this message in the networking platform