Link to home
Start Free TrialLog in
Avatar of ZURINET
ZURINET

asked on

Convert ASP to C#

Hi all
I need to convert the code below to C#

BProdukt = right("0000000000"+cstr(FormatNumber(preisupdate("FFaktorProdukt"),9,,,0)),19)

Thanks in Advance

Avatar of Anton_Sivov
Anton_Sivov

Hi Zurinet,

Could you please say me, does the preisupdate is a function withing return type string?
Avatar of ZURINET

ASKER

Hi Anton..

BProdukt = right("0000000000 "+cstr(FormatNumber(100.5,9,,,0)),19)

It looks better now..

Back to your question.. the Preisupdate is just a function.. but it not relevant..
The query above is okay.. if you can convert it
ASKER CERTIFIED SOLUTION
Avatar of Anton_Sivov
Anton_Sivov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ZURINET

ASKER

Hi Anton
Thanks for your input .. I have just modified your code

private string GetBProdukt (string anyValue)
        {
          Decimal value;
             if (Decimal.TryParse(preisupdate(anyValue), out value))
            {
                return value.ToString("000000000.000000000"));
            }
          return null;
        }
Welcome :)