fix code

Hi all

I can not able to run the following code in MAPPING and it gives me the syntax error in line 1. I could not able to find what's wrong with the code... Please correct me

If left (API. POVMgr.PPOVPeriod, 3) = "JAN" or
Left (API. POVMgr.PPOVPeriod, 3) = "February" or
Left (API. POVMgr.PPOVPeriod, 3) = "MAR" Then
Result = "1 q _" & Right (API. POVMgr.PPOVPeriod, 2) & "_" & varValues (39)

ElseIf Left (API. POVMgr.PPOVPeriod, 3) = "APR" or
Left (API. POVMgr.PPOVPeriod, 3) = 'MAY' or
Left (API. POVMgr.PPOVPeriod, 3) = "JUN" Then
Result = "2 q _" & Right (API. POVMgr.PPOVPeriod, 2) & "_" & varValues (39)
End If

I should get my output like 1Q_11_(my data) or 2Q_11_(my data)


Thanks in adv!

Edited by: 888755 November 17, 2011 01:23

The if statement in your code must appear either on line or use the designation of underscore line continuation.

To validate code listed in the FAQ code tags.

If Left (API.POVMgr.PPOVPeriod ,3 ) = "JAN" or _
Left (API.POVMgr.PPOVPeriod ,3 ) = "FEB" or _
Left (API.POVMgr.PPOVPeriod ,3 ) = "MAR" Then ...

- or -

If Left (API.POVMgr.PPOVPeriod ,3 ) = "JAN" or Left (API.POVMgr.PPOVPeriod ,3 ) = "FEB" or Left (API.POVMgr.PPOVPeriod ,3 ) = "MAR" Then
 

Kind regards
Robb Salzmann

Tags: Business Intelligence

Similar Questions

  • This is the first time the following: failed: 1 update or the errors found Code 80070643. I followed through the Fix code he doctor. This morning the automatic update has not as well.

    This is the first time the following: failed: 1 update or the errors found Code 80070643. I followed through the Fix code he doctor. This morning the automatic update 4/16 showed failure: update for Microsoft Office PowerPoint 2007 (KB 24664594)

    Hi William,.

    First try the following article: http://support.microsoft.com/kb/971058.

    If this does not work, try this link: http://support.microsoft.com/kb/923100.

    While I'm not quite certain that the first will succeed, the second is a common and often recommended solution that has helped a lot with this error code.

    I hope this helps.

    Good luck!

  • How can I fix code 643 - stop updates?

    How can I fix code 643 - stop updates?

    Is based on updates, what the problem is, etc. and additional information, you are ready to provide.

    See: http://answers.microsoft.com/en-us/Search/Search?SearchTerm=643&askingquestion=false&page=1

    or

    See this thread: http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_update/windows-update-fails-to-install-updates-kb2539636/039d7c34-5e25-4cbe-bc47-e0620a6d5b7e

    For example, what updates?

    Other examples-

    You receive error code 80070643 0 x or 0 x 643, code error when you use the Windows Update or Microsoft Update Web sites to install updates
    http://support.Microsoft.com/kb/958052

    You receive an "Error 80070643" error message when you try to update Office 2003 by using Software Update Services
    http://support.Microsoft.com/kb/903772

    You cannot install some programs or updates
    http://support.Microsoft.com/kb/822798

    or maybe it's-

    When you try to install an update for .NET Framework 1.0, 1.1, 2.0, 3.0 or 3.5, you may receive Windows Update '0 x 643' error code or error code Windows install "1603".
    http://support.Microsoft.com/kb/923100

    When installing updates using Windows update or Microsoft Update you may receive error 80070643 0 x or 0 x 643
    http://support.Microsoft.com/kb/976982

  • How to fix code 39 for cd/dvd-rom readers

    How to fix code 39 for cd/dvd-rom readers

    Here the answer
  • How to fix code 646__

    can not install updates.  get the error code 646

    Hello

    Check out the Forums of Windows updates for your version of Windows.

    Answers - Windows Forums (and others)
    http://answers.Microsoft.com/en-us/default.aspx

    ==========================================

    It is a Microsoft Fixit who will help with this issue.

    You receive code 646 error or error code 0 x 80070646 when you try to install Microsoft
    Office updates
    http://support.Microsoft.com/kb/2258121

    Check this thread:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/18449f60-C149-4EAF-B8E6-a2880cd7232b

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps and happy holidays!

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Failure to update 8007317C need a fix code

    Update fails error 8007317C need trouble code

    Hello

    1. is this problem limited to updates specific or all the updates? Thanks for mentioning the number of KB.

    2 were there any hardware or software changes made on the computer before this problem?

    3. what exactly do mean you receive this error code?

    See methods below and check if that helps.

    Click on the link and run the fixit tool.

    Method 1: Reset windows update components.

    http://support.Microsoft.com/kb/971058

    Registry warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows

    http://support.Microsoft.com/kb/322756/

    Method 2
    Run the fix of the article.
    The problem with Microsoft Windows Update is not working
    http://support.Microsoft.com/mats/windows_update/

    Method 3
    Try to install the update in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the Knowledge Base article.

    Method 4
    Manually, try to install updates from Microsoft Download Center.

    a. go to the Web - http://www.microsoft.com/en-us/download/default.aspx from Microsoft Download site

    (b) enter the number of "KB" of the update in the download search box and then click OK.

    c. in the list of search results, click on the link of the article of the (KB) Knowledge Base to go to the download page. If there is more than one list, look for a link that goes to the Microsoft Download Center.

    d. If there are several versions on the download page, find the appropriate for your computer. Click on the download button and save the update to your desktop.

    e. When you are prompted, click open to install the update.

    If the problem persists, see following method.

    Method 5
    You can also try the steps from the link:
    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2

    http://support.Microsoft.com/kb/2509997

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following windows Help article.
    Back up the registry
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Chkdsk WARNING: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Let us know the status of the issue.

  • How can I fix code 0 x 80240022 I use window 8, if I'm runing udate on my window Defender

    I try to run the update on my windows Defender 8, is me given the error code 0 x 80240022. How to fix it.

    win8 upgrade or...?

  • Mark AS3 problem please help + fix Code

    Hello, I am working on a mobile game in as3 at the moment and my noobish features fired because I can't seem to get this to work. Please take a look at my code in my main class below. What im trying to do is hide the partition in the main menu, display it ingame then resets on newgame function. Please look at my code and fix it up to make it work. (its all messed up and isn't - where almost go work lol) Thanks in advance, - Ben

    [as]

    package

    {

    import flash.display.MovieClip;

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    import flash.ui.Mouse;

    import flash.events.KeyboardEvent;

    import flash.ui.Keyboard;

    import flash.events.Event;

    import flash.media.SoundChannel;

    Game/public class extends MovieClip

    {

    public static var ship: MovieClip;

    public static var healthMeter:HealthMeter;

    public static var partition: partition;

    public static var enemyShipTimer:Timer;

    public static var gameOverMenu:GameOverMenu;

    public static var startMenu:StartMenu;

    public static var startButton:StartButton;

    public static var pauseButton:PauseButton;

    public static var playButton:PlayButton;

    public static var mainMenuButton:MainMenuButton;

    public var currentValue:Number;

    public void Game()

    {

    Key.Initialize (internship);

    ship = new Ship();

    healthMeter = new HealthMeter();

    healthMeter.x = 2.5;

    healthMeter.y = 576;

    gameOverMenu = new GameOverMenu();

    gameOverMenu.x = 217;

    gameOverMenu.y = 244;

    addChild (gameOverMenu);

    gameOverMenu.visible = false;

    gameOverMenu.playAgainButton.addEventListener ("mouseDown", newGame);

    addEventListener (Event.DEACTIVATE, PauseGame);

    startMenu = new StartMenu();

    mainMenuButton = new MainMenuButton();

    startButton = new StartButton();

    startMenu.x = 151;

    startMenu.y = 111;

    startButton.x = 93;

    startButton.y = 426;

    mainMenuButton.x = 656;

    mainMenuButton.y = 483;

    addChild (mainMenuButton);

    mainMenuButton.visible = false;

    stage.addChildAt (startMenu, 0);

    addChild (startButton);

    startMenu.visible = true;

    startButton.visible = true;

    startMenu.visible = true;

    startButton.addEventListener ("mouseDown", newGame);

    mainMenuButton.addEventListener ("mouseDown", mainMenu);

    pauseButton = new PauseButton();

    pauseButton.x = 896;

    pauseButton.y = 63;

    pauseButton.addEventListener ("mouseDown", PauseGame);

    playButton = new PlayButton();

    playButton.x = 896;

    playButton.y = 63;

    addChild (playButton);

    playButton.visible = false;

    playButton.addEventListener ("mouseDown", countryside);

    }

    public static function gameOver()

    {

    mainMenuButton.visible = true;

    healthMeter.visible = false;

    pauseButton.visible = false;

    gameOverMenu.visible = true;

    enemyShipTimer.stop ();

    for (var i in EnemyShip.list)

    {

    EnemyShip.list [i] .kill ();

    }

    ship.takeDamage(-ship.maxHealth);

    }

    function newGame(e:Event)

    {

    gameScore.visible = true;

    addChild (pauseButton);

    addChild (healthMeter);

    addChild (mainMenuButton);

    enemyShipTimer = new Timer (1500);

    enemyShipTimer.addEventListener ("timer", sendEnemy);

    addChild (ship);

    healthMeter.visible = true;

    startMenu.visible = false;

    mainMenuButton.visible = false;

    startButton.visible = false;

    healthMeter.visible = true;

    pauseButton.visible = true;

    playButton.visible = false;

    gameOverMenu.visible = false;

    Ship.Visible = true;

    Ship.x =-2.85;

    Ship.y = 469;

    enemyShipTimer.start ();

    }

    function mainMenu(e:Event)

    {

    gameScore.visible = false;

    removeChild (mainMenuButton);

    removeChild (ship);

    healthMeter.visible = false;

    startMenu.visible = true;

    mainMenuButton.visible = false;

    startButton.visible = true;

    healthMeter.visible = false;

    pauseButton.visible = false;

    playButton.visible = false;

    ship.takeDamage (ship.maxHealth);

    gameOverMenu.visible = false;

    }

    function PauseGame(e:Event)

    {

    enemyShipTimer.removeEventListener ("timer", sendEnemy);

    stage.frameRate = 0; / /

    pauseButton.visible = false;

    playButton.visible = true;

    }

    function PlayGame(e:Event)

    {

    enemyShipTimer.addEventListener ("timer", sendEnemy);

    stage.frameRate = 30; / /

    pauseButton.visible = true;

    playButton.visible = false;

    }

    function sendEnemy(e:Event)

    {

    enemy of the var = new EnemyShip();

    stage.addChildAt (enemy, 0);

    addToValue (1);

    }

    function getFinalScore (): number

    {

    Return gameScore.currentValue;

    }

    Counter() function

    {

    Reset();

    }

    function addToValue (amountToAdd:Number): void

    {

    currentValue = currentValue + amountToAdd;

    updateDisplay();

    }

    public void setValue (amount: Number): void

    {

    currentValue = amount;

    updateDisplay();

    }

    public void reset (): void

    {

    currentValue = 0;

    updateDisplay();

    }

    public function updateDisplay (): void

    {

    super.updateDisplay ();

    score.scoreDisplay.text = currentValue.toString ();

    }

    }

    }

    [/ ACE]

    debugging it throws (totally smart) now this error:

    "

    Try to launch and connect to player using URL I:/SFUR/APP/APP-app.xml

    [SWF] APP.swf - 57868 bytes after decompression

    ReferenceError: Error #1070: updateDisplay method not found on flash.display.MovieClip

    game / updateDisplay () [I:\SFUR\APP\Game.as:185]

    game / addToValue () [I:\SFUR\APP\Game.as:168]

    game / sendEnemy ([I:\SFUR\APP\Game.as:154])

    at flash.utils::Timer/_timerDispatch()

    at flash.utils::Timer/tick()

    Debug the session is over.

    "

    is not surprising... Help, please!

    Thanks in advance,

    -Ben (Nacho )

    What is the line 185 is an object that does not exist as long as the code sees it.

  • How can I fix code 0 x 82004404?

    Hello

    I get the same error message (code 0 x 82004404) whenever I tried to update my laptop (Vista professional).

    I don't know how to solve this problem.

    Help, please.

    Thank you

    Hery

    Dear Sandeep,

    Thank you for your help.

    After some research more, few people have this problem due to a recent update of "windows update" and it has something to do with ESET Smart Security, which filters the HTTPS connection.

    I disabled it and now I can update windows again.

    Filter HTTPS connection important for security?

    Kind regards

    Hery

  • How can I fix code purple error on HP?

    I have currently a HP p6277c-b desktop PC running Windows 7 home prmium 64-bit.

    I had a Doctor in my video section of the motherboard, I first checked HP for the motherboard, but they don't sell any more.  I went online and found the same exact motherboard (ipiel-la3-eureka-gl8 p/n 533234-002).

    I installed the motherboard which was perfect, booted up machine and it only would not start before start Ifigured drive somehow got corrupted, so I did a system restore and everything was good, the start screen came punt by that and went to the configuration system, it is when I get an ERROR CODE PURPLE!

    Doing some research on the Internet I found the error Code Purple is a boobie trap that HP creates, there is a tattoo on the motherboard that seeks recovery. Thank you HP.  So I'm stuck since my HP is out of warranty, they won't even far cosider talking to me.

    How can I get the motherboard HP tattoo?

    Sincerely,

    A customer in. ' ed

    John

    The source of the new motherboard has no importance.

    HP said they will help with a "Code Purple". I offer the remedy only if necessary.

  • How can I fix code backup failed: 0 x 800700002

    Original title: I have two computers both with separate hard drive backup. Since the end of last year I received the notification of backup failure due to the same file missing 0 x 800700002. How can I retrieve this file?

    A computer is a Dell laptop, the second is a Mesh desktop. I tried restoring the system without success.

    I also checked my list of profiles in Regedit in HKEY_LOCAL_MACHINE microsoft\windowsNT\Currentversion\profilelist but had the user referenced in the profile image path

    I don't know what else to try? Can you help me? Why is this on 2 computers, I am running a joint programme that has bothered with this file?

    Robert

    Did you see the following Article in the Knowledge Base?

    http://support.Microsoft.com/kb/979281

  • How to fix code 8007000D that appears whenever I try to run the platform for windows vista update?

    I am trying to install the new version of MSN Messenger (2011), but to do that, I need to install first the platform update for Windows Vista and everytime I try to do, I get an error message and I can't finish.

    A program on your computer interfered with the installation

    What application anti-virus or security suite is installed and your current subscription?

    What anti-malware software can be installed.

    Just out of curiosity you use SpyBot Search and Destroy? Resident Tea Timer of Spybot is & she always enabled?

    0X8007000D ERROR_INVALID_DATA

    Description

    These data are incorrect.

    Description of the update of the system for Windows Vista tool

    http://support.Microsoft.com/kb/947821>

    0R

    Launch a collateral request for assistance free Windows Update:

    https://support.Microsoft.com/OAS/default.aspx?Gprid=6527>

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    For more information about how to contact your local Microsoft subsidiary for security update support issues, visit the International Support Web site: http://support.microsoft.com/common/international.aspx

    For enterprise customers, support for security updates is available through your usual support contacts.

    04/16 / 1107:05: 42 pm

  • Error of USB host - peripheral controller is not working properly because Windows cannot load the drivers required for this device. (Code 31)

    Original title - USB - IF xHCI USB Host Controller

    This device does not work properly because Windows cannot load the drivers required for this device. (Code 31)

    I have a permanent error on my computer and when I run the troubleshooter I get the above message.  It says Windows cannot load the driver.

    Hello

    USB devices remove all you can - restart the computer - is still there, the error? If it isn't
    It is related to one of the add-in devices that you removed. If she is still there, then, the question is
    either a device internal who can not remove or physically with the USB bus itself.
    If it was not there, add devices at a time until it is displayed - keep in mind that it is
    possible that there are two (or more) devices in conflict over the issue. Once you
    identified the check of the aircraft with the help of the manufacturer.

    1. to find the control panel - device - device - right-click on it - uninstall - Manager then
    Restart the computer to see if it clears.

    2. same place - double click on the device - driver tab - driver update - to see if that helps.

    3. check with the support of system manufacturer (manufacturer of motherboard for customized systems), their
    online documentation and drivers, diagnostics and ask questions in their forums on all known
    questions. Update the Bios and chipset or other USB drivers.

    =====================================

    If necessary, we will use these additional troubleshooting methods:

    How to fix Code 31 errors
    http://pcsupport.about.com/od/findbyerrormessage/a/code-31-error.htm

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Finalize the code

    I have a new labview code built that may be used by other users. Is it possible to not allow modifications to the code.

    You should definitely use a source code control repository.  you want co-developers to reuse code and you need an overall policy on how to handle a.

    Sea story time:

    As a noob to LabVIEW, I was part of a very small group who underwent a reorganization because we were slinging son beyond expectations.  Focus-changed R & d tests for the design of hardware verification tests.  Group increased by 200%. Management had not considered the need to source control... I hear you all begin to vibrate and contract as you read this...

    Needless to say that our productivity begins to orders of magnitude.  Why, fixing 'Code Broke', find vi displaced or have been re-slotted, re - link connector-pronged changed.  It was aweful - if you do it wrong we did it wrong.  We have learned the value of management control and library of Code Source PAINFULLY - but very good.  Do not repeat what we did.

  • Code 646, cannot install dates. The question of liciense agreement is not required.

    Code 646, cannot install dates. The question of liciense agreement is not required.

    Try this FixIt:
    Code error '0 x 80070646', '646', or '1606' when you try to install the Office updates

    http://support.Microsoft.com/kb/2258121 "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

Maybe you are looking for