Tips & Tricks – Trim method in Microsoft Dynamics NAV (Microsoft Business Solutions-Navision)

My Tip & Trick help you to implement Trim function in C/AL for Microsoft Dynamics Nav.

Trim

Removes all white-space characters from the start and end of a string.

You can use the C/AL function DELCHR with the following syntax:

NewString := DELCHR(String [, Where] [, Which])

So, you can use the following code:

String := DELCHR(String,'<>',' ');

TrimStart or LTrim

Removes all white-space characters from the start of a string.

String := DELCHR(String,'<',' ');

TrimEnd or RTrim

Removes all white-space characters from the end of a string.

String := DELCHR(String,'>',' ');

NOTE:
Since “spaces” are used as the default for Which, we can skip second parameter and write code like this:

String := DELCHR(String,'<>');

Do you think that my Tip & Trick is useful? Leave a reply.

The name ‘DisplayModes’ does not exist in the current context

The name ‘DisplayModes’ does not exist in the current context

The error above is caused from the following code:

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    DisplayModes.RequireConsistentDisplayMode = true;
}

Solution:

Replace

DisplayModes.RequireConsistentDisplayMode = true;

with

DisplayModeProvider.Instance.RequireConsistentDisplayMode = true;

Did my solution solve your problem? Leave a reply.

Microsoft Windows Phone – “0×89731812″

0×89731812

The above error message appears when you try to deploy a Windows Phone Project to a physical Windows Phone device.

Cause:
Connection to device failed.

Solution:
Disconnect and Reconnect the USB Cable, verify that Zune running and unlock the screen.

Did my solution solve your problem? Leave a reply.

HOW TO remove Facebook virus “http://www.ԣԣԡԣԣԡ.com/?ԣԡ << Look Here !”

How to remove Facebook virus that publishes for you (with your name) the following message with your contacts tagged:

http://www.ԣԣԡԣԣԡ.com/?ԣԡ << Look Here !

Cause:
You received the notify that your friend tagged you in a message with the above message.
You opened the link that show the following page

Virus Facebook

You clicked to play the video and when appears the following alert

Virus Facebook - Business Flash Player !

you clicked the Add button.

How to remove Facebook virus?

Solution:
Open Google Chrome, click the Chrome menu Google_Chrome_menu on the browser toolbar then select Settings, click on Extensions and how to remove facebook virus - Remove from Chrome Remove from Chrome at the line of the extension Business Flash Player !

Did my HOW TO help you? Leave a reply.