RE: Weirdness with MoveToString()

Jack,
Did you reset the offset of the textdata to 0 before you use the
MoveToString method? For example,
AText : TextData;
Atext.offset = 0;
If AText.MoveToString('MyString') then
End if;
Hope this help.
Tien Wang
Tien Wang
Indus Consultancy Services
(201) 261-3100 ext 236
[email protected]
From: Jack Runnels[SMTP:[email protected]]
Reply To: Jack Runnels
Sent: Tuesday, April 21, 1998 10:52 AM
To: Forte' Users Group (E-mail)
Subject: Weirdness with MoveToString()
I am doing a large amount of parsing of HTTP source code to generate
attributes for a multitude of objects. To capture values for these
attributes, I create a TextData object, set its value to be the source
code, then use the MoveToString() method to get to an indicator of
that
attribute. In most incidences of my code, I use an explicitly typed
in
string. In 10 incidences, however, I use a string constant. The
MoveToString() method works fine with all of these. In a new call I
am
doing, I use a string constant, and the method does not work. It
returns
FALSE, even though the string I am searching for is in the source
code. If
I explicitly type the search string, or use a TextData object with its
value set to the string constant, it works.
Does anyone know why the MoveToString() method would not work with a
string
constant for one specific call, when it works with all other similar
calls
I've made? If I use a TextData object with its value set to the
string
constant in the future, can I be assured that a similar problem won't
occur?
Jack Runnels
Consultant
Albion International, Inc.
Voice: 770.980.6753 or
800.492.1048
FAX: 770.980.6734
Internet: [email protected]

Jack, I had similar problem in my project.
Forte uses C - style zero delimited string and my guess is that
in the case of constant it is searching for complete string, delimiter
included. Although it is no brainer to write a simple test I never
got to do it. Hope that helps, Boris.
Jack Runnels wrote:
>
I am doing a large amount of parsing of HTTP source code to generate
attributes for a multitude of objects. To capture values for these
attributes, I create a TextData object, set its value to be the source
code, then use the MoveToString() method to get to an indicator of that
attribute. In most incidences of my code, I use an explicitly typed in
string. In 10 incidences, however, I use a string constant. The
MoveToString() method works fine with all of these. In a new call I am
doing, I use a string constant, and the method does not work. It returns
FALSE, even though the string I am searching for is in the source code. If
I explicitly type the search string, or use a TextData object with its
value set to the string constant, it works.
Does anyone know why the MoveToString() method would not work with a string
constant for one specific call, when it works with all other similar calls
I've made? If I use a TextData object with its value set to the string
constant in the future, can I be assured that a similar problem won't
occur?
Jack Runnels
Consultant
Albion International, Inc.
Voice: 770.980.6753 or
800.492.1048
FAX: 770.980.6734
Internet: [email protected]

Similar Messages

  • ID CS3 Transparency weirdness with text/special effects

    Okay, I was putting together a brochure for my job today and noticed this oddity. I placed a text box w/text over a stock photo and printed it out - everything was fine. Then I added a drop shadow to the text and all of a sudden the photo became rather desaturated.
    Just in case this was some sort of weirdness with that particular document, I created a new document, placed several photos on a page, and then created a text box and applied a drop shadow. All the photos on the page again noticeably lost saturation, and here's the weird part, the text box didn't even touch any of the photos. It only appears to affect items on the same page - items on other pages are unaffected.
    It seems whenever you have an object or text frame on a page with transparency or a special effect like a drop shadow, all the photos on the page lose about 20% saturation.
    Am I missing something that I can compensate for, or is this a bug/feature?

    I'm using shadows and transparency overlays in my InDesign CS3 application. When I output that file to a press resolution pdf file, it appears fine. However, when the digital printer runs the project, the transparency disappears and i get white boxes in the place of transparent boxes.
    The print provider is a non-offset source and is using some other RIP to process the file. Is the transparency feature posing a problem in the offset invironment?
    Victor

  • Weirdness with creating QT files

    I have nine short HD clips I'm making into QT files with Photo JPeg codec from FCP timeline. All shot with same camera, captured in same way, same time, and have all been treated same way in the edit. When I convert them to QT, some of them turn out perfect, some of them turn out with the video lagging behind. The delay resembles the way the footage plays when capturing, ie video out of synch with audio. They seem to start okay for a second or two, but then lose it.
    The weird thing seems to be that some are turning out okay, with no change to any settings whatsover. This is also happening when I create the same clips into WMV files. the same ones are good, and the same troublesome ones are giving the same problem. Trying my best to explain this, but it's a weird one. Anyone help, please!!

    Found the solution for this. Here it is if anyone else has the same issue:
    This is actually quite simple to resolve. Go to: Tools / Options
    Go to the "Advanced" tab
    Click on "Config Editor"
    Look for: mail.server.default.fetch_by_chunks
    Click on it to change the default to "false"
    Save.

  • 10.6 Weirdness with external drives

    Ever since upgrading to OS 10.6 my external hard drives have been acting wonky.
    These drives are formatted to MS-DOS (FAT32).
    For example:
    When I move files named like this for example 0010701_01_7132.zip to the trash
    The finder leaves a ghost file behind.
    001~17.TIF
    Any suggestions? It is not just one drive.
    Thanks

    I can't be sure it is the same problem. But I've been having some weirdness, as it were, with external hard drives since upgrading to 10.6. I couldn't copy from one to another because I would get an error telling me that a file already existed. I found using command line 'cp' worked fine. If you haven't thought of it yet, try using 'rm' on the files, as I suspect something with the drag-and-drop functionality is the culprit.

  • Weirdness with Snow Leopard

    I have CS4 with Bridge and just upgraded to Snow Leopard. I'm having weird behavior with Bridge. It is not showing up all photos in certain folders, and when I navigate to other folders sometimes it just stops working (spinning ball, not responsive...). Anybody else having problems with Bridge?

    I was about to crow that (for once!) I have no problems with Bridge. CS4 running 10.6.1 on the Mac Pro. Then I recalled it crashes every time I close bridge. Doesn't seems to worry me as I'm done with it by the time I press the goodbye button but isn't this strange behaviour. PS CS4 also crashes too. Just for fun (coz I doubt they give a toss) I sent the crash report this time, and for even more fun I asked them for an answer. Nothing like setting one's self up for a let down, hey.
    I tried to get the 'crash data' from the report but nothing happens when I hit the 'crash data' icon. Perhaps if I had more expertise at these things I could sort the problems instead of waiting like you, for Adobe.
    I don't bother with the forums much, just a place for hapless software consumers to vent their frustrations to other hapless types.
    Cheerios,
    Cam.
    PS... OSX 10.6 snow leopard was released about 5 or 6 weeks ago. I think the last CS4 update for photoshop was February, 8 months ago. Call me a cynic but I fear Mr Adobe would rather we pay for any fixes via the next major release than support us with a dot release. Am I a hapless cynic? I can take it if you think so. Just my personal view.

  • Wireless Keyboard acting weird with iPad

    Hi everybody,
    When I press the arrow up (alone, no shift or any ather touch pressed) reless keyboard (latest model) my ipad starts playing music (as if I pressed F8). is this a known shortcut? is there any way to stop it?
    Or might it be due to some weird contact in my keyboard? But this seems to me strange, since F8 and arrow up aren't one close to the other, and this is the only strange thing that my keyboard does.
    Nothing like that or nothing weird at all happens when I use the keyboard with the Macbook.
    Many thanks.
    Roberta

    Update - I can't even connect it to Windows anymore. It gets past the part where I type the code on the keyboard, windows says it's connected. It does the driver thing, and by the time thats done, it can't type, and the light on the keyboard still flashes as if it's connecting... Also, it disappears in the bluetooth devices list...
    Message was edited by: Moptop650

  • CFAdmin API clearTrustedCache weirdness with clustered sites.

    This is my first post here in a long while and it is a
    doozy....
    Thanks in advance for any assistance you can provide and for
    reading my lengthy description to come:
    My Setup:
    I have 2 physical web servers setup each of which has CFMX
    7.02 installed in the multiserver JRun configuration with the
    chf7020002.jar patch installed. I have created 2 instances on each
    system from EAR files and added each of these instances to a local
    cluster group. There is no clustering between the physical web
    servers. I have not installed any Jrun updates. I am using a custom
    JRE to fix the DST issues as documented in the CFusion support home
    on this site.
    I then have the cluster attached to an IIS 6.0 Virtual web
    host on Windows 2003 Standard with SP2 and all patches installed.
    The Virtual Host is connected to a file share for the web root.
    Everything works wonderfully for serving and the local cluster
    allows graceful fail-over between the local jrun instances attached
    to the cluster.
    My Problem:
    We are paying for this high availability by needing to clear
    the template cache on 4 separate jrun instances every time a
    developer performs a code update. This means logging in to each of
    the instances and navigating to the Clear Template Cache Now
    button. This works without error.
    My Solution (that doesn work):
    In order to automate the above I found code
    Online
    and placed it in a file in the webroot of each of the instances
    (c:\jrun\servers\instance-a\instance-a.ear\instance-a.war\).
    I then called the file via
    http://instance-a:8301/ClearTemplateCache.cfm
    http://instance-b:8302/ClearTemplateCache.cfm
    http://instance-b:8301/ClearTemplateCache.cfm
    http://instance-b:8302/ClearTemplateCache.cfm
    after making a change.
    My even bigger problem:
    This is where it gets weird. When calling the changed page we
    sometimes get the changes and other times it looks like the page
    before the changes. If we make another change and then rerun the
    scripts then we start cycling through 3 different versions of the
    page at random. The only way to clear this behaviour is to click
    the Clear Template Cache button.
    I have tried shutting down one of the servers to ensure there
    is no inter server communication causing the issue and the problem
    still occurs. I then tried shutting down one of the instances on
    the remaining server and the error still occurs when only one
    instance is present.
    My Plea For Help
    Does anyone have any ideas? I really don't want to have to
    restart each instance via the admin API since the restarts at
    costly in terms of time. I am trying to get the developers here on
    a proper test and publish schedule to minimize the need for the
    sort of functionality described but changing their habits will take
    much longer than a fix or ideas from the gang on these forums.
    Thanks for your time,
    Josh
    ClearTemplateCache.cfm:

    Adobe Tech support was very helpful in resolving this issue.
    Uncheck "Save class files" in the CFAdministrator >
    Caching panel of each instance.
    This will incur a slight time penalty the first time a page
    is called but it is 100% effective.

  • Mail weirdness with Snow Leopard L2TP VPN?

    I'm new to Snow Leopard Server. I've set up Mail and the L2TP VPN on my server at home. The server is connected to a Time Capsule and NATed by the Time Capsule (which is connected to a DSL box
    providing a static IP). When I'm on my Mac in the office, I can easily connect in to the VPN. I've set up my Apple Mail client there to get Mail from the server machine at home but Mail seems very strange. It will take forever to load a message when you click on it sometimes. Other times, when you attempt to send a message it will complain that the authentication to the mail server at home failed (even though it authenticated successfully several minutes earlier). Looking at the activity window and the connection doctor (with details logged) it appears to be contacting the mail server, getting information, then stopping for long periods of time, then resuming what it was doing, etc. I have no problem with the VPN when doing AFP operations (copying files to and from work and home). Web is a bit slow, but the main problem is mail.
    Can anyone suggest avenues to explore in troubleshooting this problem? One thing to note - I've also used OpenVPN to connect back to the server instead of the L2TP VPN and I don't have this problem so it appears to be some odd conflict with using Apple Mail over the Apple VPN but I can't figure out why.

    No - the OpenVPN client doesn't use L2TP it uses an SSL mechanism. L2TP works fine, it's just
    mail that exhibits weirdness. I've been tracing the IMAP exchanges when this happens and it
    looks like it may have something to do with disk activity but I need to investigate further.
    I'm not having any problems connecting with L2TP at all. Probably that's because I don't have
    the newer (late 2009) Time Capsule with the firmware that's causing all the problems with VPN
    (my Time Capsule is an earlier version that can't run that firmware).

  • Typing weirdness with "L" character in Mail

    After installing Yosemite, I'm encountering weird keyboard transposition errors when I type new messages in Mail.  After typing two lower case L's, hitting space frequently moves the cursor backwards. So typing "well then" will produce "welthenl". Seems to happen about 33% of the time. Doesn't seem to happen in other applications.
    I'm using Mail 8.1 on OS 10.10.1, on a 2012 MacBook Pro.
    I also previously had a very common problem with connecting to my outgoing SMTP server, but that's fixed.
    Anyone else having this problem?

    Yes!!  I have this issue too.  Drives me nutty.
    This is definitely some kind of bug in Mail in Yosemite.  Where do we file bug reports?

  • Weirdness with my wife's display

    My wife has a 15" MacBook Pro, probably 2-3 years old by now. Lately, the display has been doing some really weird things. It'll boot fine and run for awhile without incident. Then at some point during her work day, the screen will 'go weird'. It has....
    Gone ultra dark where you can barely see any of the icons or the menu bar
    developed fine vertical lines that run across the whole screen. Can still use the computer, but very hard to see anything.
    Or the screen just starts going all psychedelic, like a screen saver run amok.
    Sometimes we can see the apple menu and do a restart, sometimes we just have to manually power the unit down and back up. I'm REALLY hoping this isn't a logic board issue. We use this computer in our small business. At work, we could buy her a separate display and have her just work from that if the issue is the display itself. But what I don't understand is why it's fine for awhile then goes all wonky.
    Wondering if there's any kind of diagnostics I can run. I appreciate any guidance, thanks.

    OK, an update and a question:
    we took the machine to the Genius Bar at the local Apple Store and it does indeed qualify for the free repair. And, they also found a bunch of problems with they tested the logic board and said they'll replace that for $180. Awesome!
    But I just had a client in who said his work place had several MBPs that had the graphics issue, all got repaired, and with each one they simply replaced the defective graphics card with a new version of THE EXACT SAME GRAPHICS CARD!
    This seems patently insane to me. They KNOW this card has major issues and they are putting them back in machines that have already had a problem? Anyone know why they'd do something that seems to dumb? This is not a company that seems to do many dumb things, but this sounds like it qualifies. Is no other graphics card compatible or something?

  • Alpha channel weirdness with hardware MPE

    To begin, I'm using a GTX 480 with the hack, so I'm not going to complain too loudly it this is a result of using as-yet unsupported hardware. However, I just want to verify with other hardware MPE users (both legit and unsupported) if this issue is happening on other systems.
    I've noticed some oddities with imported PSD files and the way that their alpha channels are rendered with hardware MPE, versus software MPE. I'm putting up a couple frame grabs with GPU acceleration turned on and off at couple different point where I'm using the PSDs. Forgive the PNG compression; you should be able to see the difference, nevertheless.
    First up, 100% opaque text over a background. The edges of the text are... fuzzy, maybe?
    Software:
    Hardware:
    Second, a couple layers Fast Blurring and fading in. The logo is 100% opaque, and there is a separate "glow" layer (rasterized in PS) behind it. Pretty obvious, here...
    Software:
    Hardware:
    Finally, a mostly-transparent logo bug. The hardware version is not as transparent.
    Software:
    Hardware:
    The only difference between each of these examples is that I turned on or off GPU acceleration in the Project Settings; it's the same PSD for each grab. I've also noticed that standard cross dissolves are a little chunky when dissolving to or from a graphic (even a flattened version); the opacity change is not as linear as it usually is. In software mode, this goes away.
    Anyone witnessed similar results? Again, I want to believe that this is just a result of using the GTX 480 and the hack, without official support. It could very well be the nVidia driver, too, I suppose, but I haven't tried rolling back to check that (I'm running the latest versions).
    Thoughts?

    I can confirm this.
    I do not think its the psd but the Alpha Channel in general.
    The colours are off when in MPE (Nvidia GTX 285)
    I filed a bug report.

  • Weirdness with Dell S2009W monitor

    I just bought a new (refurbished) Mac Mini (2GHz, 1GB RAM). It's the new model with mini-display port and mini-DVI video outputs. I bought a Dell S2009W and tried to connect it via DVI and it just tells me that the monitor is going to sleep mode and it never displays the mac desktop (and I can connect via screen sharing, so I know the mini is working properly).
    To see if it was the DVI cable or connector on the monitor, I plugged it into my MacBook Pro and it works fine as a second monitor (no mini-DVI to DVI adapter needed) at the monitor's native 1600 x 900 resolution.
    I had a mini-DVI to VGA adapter, so I tried it with that and it displays the mac desktop just fine 1600 x 900, but it won't go into sleep mode when the mini goes to sleep. I'm left with a message that says "No VGA signal" or something like that. Fortunately, it moves around the screen, so I don't have to worry about burn-in, but I'd like the display to go into sleep mode.
    One more thing... when I connect to the mini via screen sharing, and the monitor is plugged in via DVI, I can see only 4 resolutions: 800x600, 1024x768, 1280x1024, and 1680x1050, but no 1600x900.
    What gives? Is something wrong with my mini-DVI to DVI adapter that came with my mini? (It was a refurb, after all.) Or does the mini not have enough memory to drive the 1600 x 900 resolution display with a DVI signal???

    Thanks for the response.
    I saw nothing on the Dell when I swapped screen resolutions on the mini via screen sharing. I know it had some effect because the size of the desktop I saw in screen sharing changed accordingly.
    The Dell claims to support HDCP and both MBP and mini are running 10.5.7.
    The sleep mode on the monitor engages when I connect it to the mini via DVI. In fact, it engages instantly and won't display anything at all. I can't get it out of sleep mode. I tested sleep mode when the dell as connected to my MBP and it worked.
    What I see when the monitor is connected to my mini via VGA is what you suspected: just a blank screen with the message "No VGA cable connected" and the power button glows white. When it goes into sleep mode, it has a different message (something that tells you it's going to sleep), then the screen goes dark and the power button glows amber.
    The DVI cable adapter is my first suspect too, but the fact that neither connection works flawlessly, and the fact that my mini was a refurb, makes me wonder if the video circuitry on the mini is the problem. I have the cable adapter with me, so will try to get some time at the nearby Apple Store Genius Bar to figure this out.
    Thanks again for responding. This is really confusing and frustrating.

  • Weirdness with Bullets and Numbers

    I'm using RH8 on Windows XP.  Ever since I upgraded, every time I format a block of text with bullets OR numbers, the software changes my Arial 10 point text to Times New Roman 12.  It's getting annoying having to reformat my text every time I put it in bullets or numbers.  Is this a "feature?"  Is there some uber-style that's overriding my stylesheet?
    Thanks,
    Jeff Kersh
    American HealthTech, Inc.

    Hi,
    Afaik, there is nu überstyle in RH. Assuming you don't use the RoboHelp multilevel lists: You probably want to set global list styles in your CSS. You need the UL tag for unordered lists and the OL tag for Ordered lists.
    For instance:
    UL, OL {
         Font-family: Arial, sans-serif;
         Font-size: 10pt;
    To make all your unformatted lists Arial 10 pt.
    Search around a bit on the forum. A lot of people have had problems with lists, and there have been a lot of posts already on this subject. If you can't find what you're looking for, please post again.
    Greet,
    Willam.
    This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

  • IHome weirdness with 5th gen iPod

    I have both a 4th gen iPod and a 5th gen iPod and I find that my iHome that works beautifully with the 4th gen iPod works very strangely with the 5th gen... and it's not because I don't have the foot replacements for the inserts. I find that there is a noticably longer delay in waking up the 5th gen iPod from sleep than the 4th gen and I believe that the internal clock uses through the dock connector by the iHome doesn't take this into account. As a result, I often wake up to the internal beeper even though I have the iPod connected. Further, I find that the playlist that I go to sleep with is not the playlist that is used when the alarm goes off... it seems the iPod starts playing my entire song library. I don't know what the problem is... but I suspect that it's more the iPod difference than a problem with the iHome (particularly since it works so well with my 4th gen).
    Anybody have any ideas?

    Yes and no... the iHome worked fine with my 4th gen iPod in that whatever playlist I had paused when I went to sleep would play when I woke up. For some reason, my 5G will just start playing the complete song library when I wake up. My point is, some iPods work, and some don't (the recent models having a problem).

  • SSRS is weird with date format

    hello everyone,
    I've got the weirdest problem.
    At first it was the calendar in internet exporer showing the dutch format (which i want). After choosing the date i try to view the report. It wil tell me the date isnt in the right format.  So for example. 22-02-2015 is wrong and should be 02-22-2015.
    For the normal user this is annoying enough and i dont understand why the datepicker acts different than the report wants.
    But now even stanger. I wanted to put a default date in my variable so i can test a bit easier. So i fill in 31-12-2015 and its accepted. But when i run the report, it tells me that the format is wrong. Soooooo. I changed the default value to 12-31-2015
    (the english format)..... BUT!!! now the variable default value isnt accepted because its not in the right format.
    Can someone please tell me how i can avoid format changes between browsers/platforms/computers or what so ever.
    there is 1 format i want and nothing else. dd-MM-yyyy thats the way and nothing else.

    Hi Fibre1980,
    As per my understanding, when you preview the report, you hope that the date is displayed in the format dd-MM-yyyy in calendar, right?
    In Reporting Services, the format of date in calendar control depends on your client machines language and regional settings. If you want to display date in the format dd-MM-yyyy, you can get parameter values from a query, so that values get populated in a
    dropdown list and displayed in your required format.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/6e719c7b-cfd5-4f0d-a530-f9710704446c/trouble-searching-with-date-format-usuk-formatting?forum=sqlreportingservices
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

Maybe you are looking for

  • S10, Windows Live Messenger & garbled sound

    My little S10 doesn't seem to have any problems with sounds at all - at least during more normal use.  However, when using Live Messenger, the voice sound that is coming out of the speakers is all horribly garbled and isn't really recognizable.  My o

  • Persistent Help Icon

    Hi, How would I display a persistent "question mark" icon next to any label that has contextual help? There is a rollover question mark but the users have requested one that is always displayed. Thanks, Matt

  • BADI required to add tab(at Item data) in MIGO

    hi all,       I need to add one tab in MIGO transaction at item level after batch tab. Is there any BADI available. Please suggest. Thanx & Regards Rami Reddy

  • SAP NW Gateway Development Aspects

    Hi,   I have just started with SAP NW Gateway and in a learning stage.   I have some questions on the SAP NW Gateway development aspects.   1. Whether we need to develop the services in the backend (SAP ECC - SEGW transactions) and need to only expos

  • Re: Oracle Linux versioning

    Dear replier can you please also give details for option 4 & 5 1) Oracle Linux Release 6 Update 4 for x86_64 (64 Bit)     V37084-01     3.5G 2) Oracle Linux Release 6 Update 4 Boot iso image for x86_64 (64 bit)     V37088-01     197M 3) Oracle Linux