Time for another game of "Fix My Rube"

Usually in these situations, things can be simplified so I figured I'd come here to ask if anyone sees a better way. I basically have some delimiters (which may or not be in the search string string) and I need to grab the text between each set of delimiters. The search and replace is probably inefficient, at best, and it would be nice to stick it all in one loop, possibly using shift registers but I couldn't quite get it working as I wanted.
CLA, LabVIEW Versions 2010-2013
Attachments:
BetweenDelimiters.png ‏36 KB

altenbach wrote:
Mark_Yedinak wrote:
A slightly modified version of Christen's which will allow the last item to have a delimiter after it. The above version will give you an empty string in the last entry of the array.
Mine works fine with the given default data.
If you know that you are always looking 2 items, you can even use a FOR loop for even better efficiency.
I tried both since Greg mentioned the delimiter may or may not be there. My first attempt was exactly the same as yours. I modified after I added the last delimiter.
I also tried to use a regular expression. It would work provided you didn't have any longer delimiters which contained a shorter delimiter such as the "P" and "1P".
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Time for another update please

    I've tried sending this twice before. It doesn't appear in the forum and I get no NDR. I wonder what's up.
    From: Firedog Date: 17 June 2009 09:49
    To: [email protected] Subject: Re: Re: Time for another update please
    > Jochem:
    2. Progress on the proper headers in the email for threading.
    Yes, please, as a high priority. Two more things to make life easier for email users:
    Thank you
    Noel

    adobe-admin wrote on 2009-06-17 00:55:
    I wish I had more to say! Lots of little things going on. Changing caches on images. Getting uploads out of the queue faster. Lots of discussions with Jive on making new enhancements. Gathering quotes and statements of work. Lining up resources. But all of these things have so many processes and go slowly.
    I understand the process for new features takes a lot of time, both on
    the Jive side and the Adobe side. But how about the bug fixes? There are
    no statements of work there, no budget approvals, no slow moving
    bureaucratic processes, that is just a matter of Jive writing code.
    Specifically what I am interested in is:
    1. Progress on the bouncing email. And if Jive is unable to solve that
    anytime soon, whether they please can reduce the timeout on their mail
    queue. After 2 days I can resend email, after 5 days the thread is dead
    and buried. (That would be the "maximal_queue_lifetime" parameter in
    main.cf on their email gateway.)
    2. Progress on the proper headers in the email for threading.
    I understand a lot of people are also anxious to see the updates Jive
    released last week in Clearspace 2.5.13 put online, but since I try not
    to use the web interface there is hardly anything interesting for me there.
    Jochem
    Jochem van Dieten
    http://jochem.vandieten.net/

  • TS1424 Hello! Tell me, why I paid two times for one game? Stray Souls: Dollhouse Story - Collector's Edition HD, Collector's Edition???

    Hello! Tell me, why I paid two times for one game? Stray Souls: Dollhouse Story - Collector's Edition HD, Collector's Edition???

    Check your purchase history. The second charge may be for unlocking someting in the game or might be in-game items.

  • HT204088 Why am I being charged three times for an game that I purchased? Plus, there is nothing in your website to address this problem. It makes me feel like this company is just trying to steal my money if I do not look or question my billing account.

    How do I get extra charges credited back to my account? I was over charged three times on an app I bought.

    So any time any company accidentally charges you 2-3 times, they are trying to steal your money? In most cases, they fix it on their own after they catch it. If you want to make them aware of the issue, contact iTunes Support: http://apple.com/support/itunes/contact/

  • Multiple devices - 1 Apple ID, time for another ID?

    Hi
    As a family we currently only use 1 Apple ID - this is the ID on the computer that has Itunes on, any icloud stuff and then we use it on 4 devices belonging to each of us. This was I can keep track of what the children are doing plus we share all the same apps, only have to buy them once etc
    Just today I've realised that this can cause issue in some things, the children wanted to go on dragonvale at the same time but one of them would get kicked out of theirs if the other one was on it - i can only assume that for one of the children to have their own version of dragonvale etc is for her to have her own Apple ID? But can I still link her device/purhcases through our 'family'# ID as well
    Have been trying to read up on it but I cant make much sense!
    I dont really use icloud, i just sync them all to itunes once a fortnight or so

    No. iDevices are single user devices. You cannot have two users with two IDs using the same device. Either they use one Apple ID or you buy one their own device.
    Yes, Family Sharing will do that now.
    Family Sharing and Apple IDs for kids
    Family Sharing
    A Guide to Family Sharing - iCloud - Apple Developer
    Sharing purchased content with Family Sharing

  • It's time for another G5 startup issue thread!

    Folks -
    I'd like to think that I'm not entirely mac-tarded, but I figured that I would see if anyone out there had seen this before I take Mr. G5 in for repair.
    I have a Power Mac G5 DP 2.7GHz, with 2GB of RAM. It WAS running OS 10.4.9. At my place of business, it was unplugged and set aside, with a new Mac Pro taking its place. Today, I plugged it with the intent of erasing and reinstalling everything. When the computer is plugged in, the front LED comes on and stays solidly lit. The system does not respond when the power button is pressed. I've tried different power cables, and I've also removed all but 512MB of the RAM, and the same thing happens. I've reseated the video card, still no go. I've reset the PMU and, again, nothing. Am I looking at a busted power supply?
    Power Mac G5   Mac OS X (10.4.9)  

    veracd-
    Ditto Tom's remarks,. You should replace the battery before worrying about anything else.
    Instructions are here.
    Luck-
    -DaddyPaycheck

  • Time for Another "Please Backup FIRST" Thread

    Yes, that's right. Back up your system (or at least your data) BEFORE attempting to upgrade your OS. It's much easier than trying to recover your stuff after a failed installation. Astonishingly, there still seem to be many who do not understand this most basic of concepts.

    Hey look, I'm not rich either. I have put three kids through college...well. two plus one "working on it". I understand most people are not "made of money". But this is not "optional". At least it should not be considered so. It should be factored into the cost of the computer. Either a second internal drive or an external if the computer has no extra drive bay. Would you buy a new car and run it on bald tires or with no insurance? What is your data worth? Nothing? That's about the value you give it by ignoring the necessity of having at least one dependable backup. Furthermore, if it were a choice between buying the newest OS or buying a backup drive, I would seriously think about waiting on the OS.

  • How create timer for game?

    I want to know how much time player spend in the game.
    For this i want create a timer.
    I thing it must be something like this:
    player come to the game (time 0:00), player plaing for example 22 minutes, gameover game (player spend 22 minutes and 0 sec).
    code:
    import flash.utils.getTimer;
    var gameStartTime:uint;
    var gameTime:uint;
    var gameTimeField:TextField;
    function mainFunction():void
         gameTimeField = new TextField();
         addChild(gameTimeField);
         gameStartTime=getTimer();
         gameTime=0;
         addEventListener(Event.ENTER_FRAME,showTime);
    function showTime(event:Event)
         gameTime=getTimer()-gameStartTime;
         gameTimeField.text="You plaing: "+clockTime(gameTime)+"min";
    function clockTime(ms:int)
         var seconds:int=Math.floor(ms/1000);
         var minutes:int=Math.floor(seconds/60);
         seconds-=minutes*60;
         var timeString:String=minutes+":"+String(seconds+100).substr(1,2);
         return timeString;
    mainFunction();
    Is this correct way?
    If you know how to make code smaller can you please share?
    Maybe exist standart component or something else for this?
    Thank you.

    Thank you guys!
    Just asking how to make timer correct:)
    I thout maybe you know existing standart coder or standart component for it?
    For example i use the same timer for 5 games.. and for every game i need create code..  Is it possible to make code just one time and create something like standart components in Flash IDE ? Or maybe adobe have place where everyone can create components and share whit other? Or its all not possible, and need create the same code again?
    By the way why i dont see my secons here?:
    var gameStartTime:uint;
    var gameTime:uint;
    function mainFunction():void
         gameStartTime=getTimer();
         gameTime=0;
         addEventListener(Event.ENTER_FRAME,showTime);
    function showTime(event:Event)
         gameTime=getTimer()-gameStartTime;
         myText.text="Time: "+clockTime(gameTime);
    function clockTime(ms:int)
         var seconds:int=Math.floor(ms/1000);
         var timeString:String=String(seconds+100).substr(1,2);
    mainFunction();

  • ADOBE-Time for a change in forums

    Call me crazy, but if I am one of the top contributers in the CS4 or earlier forums, something is wrong with the status quo.
    I know I contribute a lot to the video 'lounge' which to me is basically yapping with friends etc...and socializing, but I definitely don't contribute much to cs4 and earlier.
    Nor do I contribute to the CS5, 5.5, 6 forum unless someone is talking about 'art', solutions to 'creativity' and so on. Definitely DON'T contribute to tech stuff, actual program related solutions to tech problems.
    I got burned a long time ago by fellow contributers who basically told me " If you don't have this version you are misleading people so shut up " no matter how much time I spent trying to solve the problem.
    My suspicion is that many long time contributers are getting a bit burnt out answering the same old questions ...that posters may or may NOT even look at for months. Many answers to questions by posters are simply references to the adobe database of similar problems.
    Since we are in a computer revolution etc... ( I don't have the energy to explain this 64 bit vs 32 bit etc not to mention hardware and codecs )...I have a suggestion to Adobe.
    Dump the cs4 and earlier forum entirely. Your return on that must be near zero in terms of selling product. Let them go somewhere else.
    Dump everything except your latest version ( cs6 )...and leave 'hardware', 'lounge' ( so I can tell people about Godzilla and Snakes )..and CHANGE THINGS.
    You ( adobe ) are moving into the future too , with many new market share and delivery system realities... so just go with that, with your latest version.
    It's obvious to me long time contributers are getting burnt out, the police dept ( moderators ) dont add as much as they used to ( mostly cause you've used their contributions to improve your product...without giving them what is due them for that IMO ...similar to open source " flight simulator " from MS in the distant past ).
    You can only milk this for so long and then it becomes an embarrassment to you as a company IMO. You are at that point.
    But leave the video lounge cause I have a lot more to share with my friends before I drop dead.

    =========
    and then NO, when I fragment a thread with comments on "scary snakes," or similar
    ========
    boy , is my face red !
    okay, I'll get serious from now on and even though it's BEER THIRTY ! YIPEE ! ...I will no longer put godzilla in masks of posters inserted image samples re: questions about " what should I do to get rid of those flower pots back there in my frame ?? "
    hehe... it is nice to have friends who understand or at least tolerate my stupidity, so thanks.
    I think one reason maybe ( guessing here ) about Curt's experience is what Steve's experience was with 'residuals' vs Curt's. He got paid for the work on the books, flat fee, one time deal despite all his incredibly good work to make those books good and comprehensive etc..and it could get sold a million times for another ten years...he wasn't getting anything more for his continued 'input' ( server cost etc defrayed by residuals etc ). In other words, Steve was the 'author' of stuff where he got a small piece for the talent and expertise etc he brought to the table, Curt got one check...and probably ended up putting so many hours into it that he got about $5 / hour ....trust me, I know what artists and enthusiastic people who are really good bring to the table.
    Anyway, I'm not here to make things 'right' and have no vested interest in what happens in the future. The only thing I'm dealing with right now in my own life is a documentary I want to do here in MN.
    It will take a year at least to outline it, script it, write V.O., get some rights to music synchronization, get someone interested in distribution...and I HAVE NO MONEY for this other than my own meager amount and my own 'interest' in the project.  If I represent a small portion of people in the world who want to make ' things' others can watch and enjoy...then maybe I am part of what the NLE programs are about for users on home machines and small business machines. And of course that NLE has to be Okay with on set shooting and monitors and scopes and the whole range of workflow ( from shoot to end product ).
    That's sorta the 'art' part of this in conjunction with the 'end product' part. If someone does something that costs an arm and a leg, takes a year to get done, and the end product is a flop due to export problems, tweening problems or some other stupid problems...it boils down to a 'wasted year of your life'.  Know what I mean ?
    Meantime, if we can help make better stuff using this NLE it's important to support one another with that grand design in mind..caring about what posters are trying to accomplish, and helping them get the best results.
    So thanks you guys and girl ( Ann ( who hates scary snakes ) ) for your fortitude. And, if Curt ever reads this, don't give up putting in the time ..just get a better contract next time.

  • HT1689 "Contact iTunes support before you can make a in-game (in-app) purchased buy again.. Solutions? Don't have time to wait for iTunes support to fix this =p

    As the thread says.
    "Contact iTunes support before you can make a in-game (in-app) purchased buy again.. Solutions? Don't have time to wait for iTunes support to fix this =p

    You need to do as requested

  • I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker

    Hi There:  I am having a problem where pdf files on the web (i.e., links in a Word doc) open after an extended time and only as gobbldygook ( a file containing a series of characters and letters that make no sense).  This also happens for another Mac user coworker in my office, while the PCs don't have this problem...  Any help/suggestions for a fix would be most appreciated! 

    Just adding more info - MacBookPro running 10.5.8 and using Safari as the browser.  The problem comes and goes - sometimes the linked Word files will open OK, n others its just a strring of crazy characters... 

  • I dont get sound for videos, games and music but ringtone still works. When i press volume buttons on side of phone i only get the picture of the nell and no little dots underneath. This is on my iphone 4s and ipad. It happened at the same time.

    I dont get sound for videos, games and music but ringtone still works. When i press volume buttons on side of phone i only get the picture of the nell and no little dots underneath. This is on my iphone 4s and ipad. It happened at the same time.

    Recurring theme with the 4s losing alerts except for the phone ringing.  Most complaints seem to center on the 7.1 upgrade.  The fix is dodgy, putting in a charger, playing a you tube video then pulling out the charger and wiggling it until you get the sound back.  When you get the sound back, the volume buttons start to work again.  Alternate solutions involve cleaning the docking port with a toothbrush, running a pick over the electrodes etc.

  • Need countdown timer for game

    i'm making a shooting game i need a timer that counts down
    and then when it gets to 0 it goes to a certain frame. This is the
    code i'm using:
    var seconds:Number=10;
    time_txt.text="";
    function countDown(){
    var time=seconds--;
    time_txt.text=time;
    if(time=0){
    gotoAndStop("lose");
    clearInterval(counter);
    counter=setInterval(countDown, 1000);
    can any one help

    just in case this might help anyone tries to help
    here is the code i'm using for the game:
    stop();
    //Set global highScore variables
    highScore = 0;
    //Set the properties for the game elements
    _root.lastframe = false;
    //Stop bullets
    //See AS for bullet MC for details
    setProperty(_root.crosshair, _visible, true);
    setProperty(_root.bullet, _visible, false);
    //Individual destroyed target images hidden until needed
    setProperty(_root.target1d, _visible, false);
    setProperty(_root.target2d, _visible, false);
    setProperty(_root.target3d, _visible, false);
    //As above. Individual highlighted target images hidden until
    needed
    setProperty(_root.target1Image, _visible, false);
    setProperty(_root.target2Image, _visible, false);
    setProperty(_root.target3Image, _visible, false);
    mouse.hide();
    //hide mouse to use cross-hairs
    //select a target to shoot at random then add that target
    //to the array of selected targets so that it isn't used
    //again in this game.
    //When the number of direct hits against the selected
    //target has been reached. Find another random target.
    //Check whether it exists in the array. If yes, select
    //again. If no, make visible.
    _root.targets = new Array();
    //create array on the main
    //timeline so that it is
    //easily accessed by all MCs
    _root.targets[0] = "target1";
    _root.targets[1] = "target2";
    _root.targets[2] = "target3";
    //3 targets we are using in
    //tutorial
    n = _root.targets.length;
    //get length of array
    ran = random(n);
    //get random number location to select from array
    target = _root.targets[ran];
    //show random array location
    _root.activeTarget = target;
    //create target variable
    setProperty("_root."+target+"Image", _visible, true);
    //show target
    _root.targets.splice(ran, 1);
    //remove the random element
    //from the array. splice
    //the random number found and
    //to the depth of one so only
    //one element is removed.
    var seconds:Number = 10;
    time_txt.text = "";
    function countDown() {
    var time = seconds--;
    time_txt.text = time;
    if (time == -10) {
    gotoAndStop("lose");
    clearInterval(counter);
    counter = setInterval(countDown, 1000);
    any help will be appreciated
    Spud

  • My sons ipod touch apps will not load. you touch them the title screen for the game flicks up then dissappears. Could someone please tell how to fix this or what could be wrong?

    My sons ipod touch apps and games will not play. when you touch to game to load it the title screen flicks up and then disappears. please could someone help me to fix this problem or tell me what could be wrong?

    I would first try resetting your iPod. Nothing will be lost.
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • I like to get some bonus coins for a game in my iPad  , Try to using iTunes Credit to pay.i I try so many times.but the Message show contact iTunes . can't pay on time!whant can I do?

    I like to get some bonus coins for a game in my iPad  , Try to using iTunes Credit to pay.i I try so many times.but the Message show contact iTunes . can't pay on time!whant can I do?

    Hi, I got the same problem. Did you fix your problem? How did you fix it? Thanks.

Maybe you are looking for

  • How to calcualte opening balance of supplier for given period

    Hi all, i have to develoed suppler ledger report.please help me how to calculate opening balance of supplier. Thanks and regards,

  • Something's wrong with my ios app store

    its just that I started downloading a game, but i somehow canceled it and dont want to re-download it anymore, and i dont even have the icon of the app downloading, but every time i turn on my ipad it pops up something to put my password in, i tap ca

  • Facing error while starting/ stopping Oracle EBS R12 services

    Hi, I am trying to shutdown Oracle EBS apps node services from following command and getting following error message. Database listener is up and password is also correct for apps but still facing error. Any suggestions for resolution of this issue.

  • Flash Professional CS5 direct to YouTube ?

    Is Flash Pro CS5 from the Adobe Creative Suite 5 Design Premium able to save or export in a format which can be directly uploaded to YouTube ? Thanks for information, and best regards from the TURNATOR ®.

  • PS Elements 4,0 irritations (are they my fault)

    My irritation level with elements is elevated to some degree. Why? 1) When opening an image elements brings it in out of focus then as it finishes loaded it goes sharp. My clients think I have out of focus images. I would rather they see in focus all