Still need help with case sensitive strings
Hello guy! Sorry to trouble you with the same problem again,
but i still need help!
"I am trying to create a scrypt that will compare a String
with an editable text that the user should type to match that
String. I was able to do that, but the problem is that is not case
sensitive, even with the adobe help telling me that strings are
case sensitive. Do you guys know how to make that comparison match
only if all the field has the right upper and lower case letters?
on exitframe
if field "t:texto1" = "Residencial Serra Verde"then
go to next
end if
end
|----> thats the one Im using!"
There were 2 replys but both of them didnt work, and the
second one even made the director crash, corrupting even previously
files that had nothing to do with the initial problem..
first solution given --
If you put each item that you are comparing into a list, it
magically
makes it case sensitive. Just put list brackets around each
item.
on exitframe
if [field "t:texto1"] = ["Residencial Serra Verde"] then
go to next
end if
end
Second solution given--
The = operator is not case-sensitive when used on strings,
but the < and > operators are case-sensitive.
So another way to do this is to check if the string is
neither greater than nor less than the target string:
vExpected = "Residencial Serra Verde"
vInput = field "t:texto 1"
if vExpected < vInput then
-- ignore
else if vExpected > vInput then
-- ignore
else
-- vExpected is a case-sensitive match for vInput
go next
end if
So any new solutions??
Thanks in advance!!
joao rsm
The first solution does in fact work and is probably the most
efficient way
of doing it. You can verify that it works by starting with a
new director
movie and adding a field named "t:texto1" into the cast with
the text
"Residencial Serra Verde" in the field. Next type the
following command in
the message window and press Enter
put [field "t:texto1"] = ["Residencial Serra Verde"]
You will see it return 1 which means True. Next, make the R
in the field
lower case and execute the command in the message window, it
will return 0
(true).
Now that you know this works, you need to dig deeper in your
code to find
what the problem is. Any more info you can supply?
Similar Messages
-
Still need help with flash player download
I'm still having a problem with the flash player, please read my last post below:
"I've tried everything here & still can't download the flash player. Anytime I try to download it asks me to install ADM add-on and then when I click on that, my computer freezes. How do I enable this add-on without my computer freezing? Can anyone help pls?"Thanks a lot for your help, it is truly appreciated.
Date: Thu, 29 Oct 2009 18:52:38 -0600
From: [email protected]
To: [email protected]
Subject: Still need help with flash player download
You can set Flash Player to check for updates on the Global Settings Manager panel:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager05.htm l
> -
I still need help with the Dictionary for my Nokia...
I still need help with the Dictionary for my Nokia 6680...
Here's the error message I get when trying to open dictionary...
"Dictionary word information missing. Install word database."
Can someone please provide me a link the where I could download this dictionary for free?
Thanks!
DON'T HIT KIDS... THEY HAVE GUNS NOW.oops, im sorry, i didnt realised i've already submitted it
DON'T HIT KIDS... THEY HAVE GUNS NOW. -
Need help with case structures- please help :)
Hey all.
I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.
ThanksYou should probably implement a state machine.
The state machine would keep track of the temperature and making ajustments on a timely basis.
There is a template of a state machine is you select under the File menu > New > From Template.
You can also look under Help > Find Example > and do a search for state machine.
There are lots of state machine examples on this forum, some of which may be quite useful.
RayR -
Still Need Help with this String Problem
basically, i need to create a program where I input 5 words and then the program outputs the number of unique words and the words themselves. for example, if i input the word hello 5 times, then the output is 1 unique word and the word "hello". i have been agonizing over this dumb problem for days, i know how to do it using hashmap, but this is an introductory course and we cannot use more complex java functions, does ANYONE know how to do this just using arrays, strings, for loops, if clauses, etc. really basic java stuff. i want the code to be able to do what the following program does:
import java.io.*; import java.util.ArrayList;
public class MoreUnique {
public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str[] = new String[5]; int uniqueEntries = 0; ArrayList<String> ue = new ArrayList<String>();
for (int i = 0; i < 5; i++) { System.out.print((i +1) + ": "); str[i] = br.readLine(); }
for (int j = 0; j < 5; j++) {
if (!ue.contains(str[j].toLowerCase())) { ue.add(str[j].toLowerCase()); } } uniqueEntries = ue.size(); System.out.print("Number of unique entries: " + uniqueEntries + " { ");
for (int q = 0; q < ue.size(); q++ ) { System.out.print(ue.get(q) + " "); } System.out.println("}"); } } but i need to find how to do it so all 5 words are put in at once on one line, and without all the advanced java functions that are in here, can anyone help out?you have to compare string 0 to strings 1-4, then
string 1 with strings 2-4, then string 2 with strings
3 and 4 then string 3 with string 4....right???Here's a way to do it:
public class MoreUnique {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final int NUM_WORDS = 5;
String[] words = new String[NUM_WORDS];
int uniqueEntries = 0;
for(int i = 0; i < NUM_WORDS; i++) {
System.out.print((i+1)+": ");
String temp = br.readLine();
if(!contains(temp, words)) {
words[uniqueEntries++] = temp;
System.out.print("Number of unique entries: "+uniqueEntries+" { ");
for (int i = 0; i < uniqueEntries; i++ ) {
System.out.print(words[i]+" ");
System.out.println("}");
private static boolean contains(String word, String[] array) {
Your code here: just a simple for-statement to
loop through your array and to see if 'word'
is in your 'array'.
}Try to fill in the blanks.
Good luck. -
Need Help With Java Query String
I'm new to Java and I'm passing data via a URL to another page(I'm not using a form). I have been succesfull in decoding the string to return the name value below:
<SCRIPT LANGUAGE="JavaScript">
function decodeSearchString() {
var nameValue = new Array();
var searchStr = unescape(location.search.substring(1));
if (searchStr) {
var formElement = searchStr.split("&");
var tmpArray = new Array();
for (k = 0; k < formElement.length; k++) {
tmpArray = formElement[k].split("=");
nameValue[tmpArray[0]] = tmpArray[1];
return nameValue
var srchData = decodeSearchString();
</SCRIPT>
However, now I need to add the value returned from the above srcipt to the Java script listed below:
<SCRIPT Language="Javascript" SRC="#srchData.link#?open&pID=PAR"> </SCRIPT>
This above script if working will add the HTML from the URL query to the page, but I keep getting a Java Error with this script. Please Help !I assume you are using a JSP page and not just solely doing Javascript. IF you are using JSP, then read on. Otherwise, I can revisit your script.
To obtain the value of the query string, you would use a method call such as:
String strQuery = request.getQueryString()
Or, to get a single parameter off the query string, you can call:
String strSearchData = request.getParameter("paramname");
Or, if you want all the parameters and values instead of just one long string you can call:
Enumeration enumParamNames = request.getParameterNames();
You can use the above enumeration in combination with getParameter() to get the values.
In order to build your script line and add the query string, you would then do something like this:
<SCRIPT Language="Javascript" SRC="#<%=strSearchData%>.link#?open&pID=PAR"> </SCRIPT>
Notice the <%= %> block in the above code.
I hope that is what you were looking for. Your example is somewhat confusing so I may have answered wrong.
Mike -
Hello
I have tried everything sugested in these posts to get iChat to work through my wireless router Dlink DI-524. I have even contacted apple care (waste of time as far as I am concerned)
I have filled out the folowing and pasted it here with as much info as I could answer.
Please take a look at the following and let me know if there is something I am missing to get this D* program working.
There are lots of things you can do to help the regular posters in this Discussion area help you.
First of all the current Discussions were designed on a One Person/Problem to one Thread basis. This was to try and stop several people jumping on what looked like a similar problem and the thread ending up with 5 or more different answer to what in fact were different problems.
Now linked to this is the need to have all the info you have in one go, up front so that we can answer as succinctly and as quickly as we can without repeating questions over and over to get to a start point.
As a Start go here and enter your computer and OS details so they appear on every Post you make.
After that you need to list these things:
1) Have you done the Quicktime Streaming setting ?
Go to System Preferences > Quicktime > Streaming tab. In the drop down set the speed to match your download or to a max of 1.5meg
YES
2) Are you running your Mac with the Firewall On ?
NO
If so have you set up ports for iChat ?
3) Did you upgrade from Panther ? NO
Do any of these things effect you ?
If they did and you have done them please state so.
4) How are you connected to the internet ? THROUGH WIRELESS
a) We need to know device make and Model ?
DLINK DI-524 ROUTER
b) We need how you have opened the ports for iChat ?
* UPnP ? ENABLED
* Port Forwarding BUMP – Thought you only need to use this if firewall is on
* Port Triggering BUMP
* DMZ BUMP
c) We need to know if you know if the device is in Bridge Mode ? BUMP
(sends your Public IP through to your computer or router).
d) Do you have a router as well ?
* Is it doing DHCP ? Do you only set this up if using built in Ethernet?
* Is it an Airport device ? YES
* Have you opened the ports there ? BUMP
* By which method ? (see above list) NOT SURE
5) Do you have any iChat Add-Ons ? NO
List them if you have.
Also state if you downloaded them when you were running Panther and if you have updated them.
1. iChatUSBCam
2. iGlasses
3. Showmacster
4. ChatFX
6) Does anything in this FAQ effect you and the Add-ons in addition to 5) ? NO. At least I don’t think so.
7) Does it have anything to do with connecting to a PC ? NO
See Here and here
8) List your Connection speed
http://www.adslguide.org.uk/tools/speedtest.asp
http://www.auditmypc.com/internet-speed-test.asp
http://www.dslreports.com/stest
http://www.bplspeedtest.com/broadband-speed-test.phpHi Kaisoboy,
This page has the instructions on how to access your device and pics to help and
It does not show UPnP in the menu.
It could be that you have newer firmware than the pics.
However it should still help.
DO NOT set the ports shown as they are wrong.
Set the ones I gave you.
8:52 PM Saturday; July 8, 2006 -
I'm looking for something to hold my iPhone in the glove box of my BMW. Thx
I use an older fourth gen iPod in my BMW and always leave it in the glove box. I found the original Apple iPod semi-hard case with belt clip that used to come with iPods at that time.(no such accessories included these days unfortunately) I have my iPod safetly inside it inside the glove box. In that case it does not roll around.
I think you can still but these cases zt Apple stores. Else something like that type of case to protect the iPod would be all you need. -
Need help with case cracking - Defect?
I have a macbook (white) a1181 that I purchased in 2008...
I handle my computers very delicatly and if they travel with me, they are packed very well with support...
The body (case) of the laptop back by the fan underneath has a long hairline crack.
There is also one where the front lip is as well.
NOW,
Apple Genius Bar wants ME to pay outright to get it fixed.
It was not my fault at all!!!!! And it was not accidental damage either.
SO I called Apple who wouldn't help me because I don't have phone support Or apple care. So if I pay the $50 for phone support, they'll tell me the same thing they told me in the store the operator told me.
FIRST OFF, I didn't know that my Apple Care expired and even if I had it, it wouldn't really help me I was told...
I paid so much money for this laptop and scrimped and saved up and I feel like I'm being dragged through the mud.
I need to contact someone higher-up ASAP - this is absolutely ridiculous.
I did not do anything to cause this cracking..
I am so upset as I really saved up for years for this computer only for 3-4 years later for it to be cracking worse and worse. I paid so much...
Any advice or help would be greatly appreciated.
Thanks,
ajajsonnick wrote:
I need to contact someone higher-up ASAP - this is absolutely ridiculous.
Did you ask to speak to a manager while you were at the Apple store? -
Half-way there, but still need help with synching individual libraries
Okay, I got my music xferred to new computer, but I'm still having problems synching individual libraries. When I did my daughter's library, I xferred purchased songs, then did the synch, so it wiped everything else out and just left me with the purchased songs (yeah, I know, big duh on my part). That's not such a big deal on her ipod because she only had about 350 songs, so I've replaced the majority of them already. However, my son and I have about 1000 songs each and I don't want to wipe out our libraries.
So, when I plug in my ipod and pull up my library, what do I need to do to keep the songs already on my ipod and synch it?
TIAKatrina you've been very helpful, I'm just having a hard time explaining myself, I guess.
I now have all of my backed up music on my current computer, so that's all good. And I've set up individual libraries for each of us with ipods. Now I'm trying to figure out how to synch (for instance) my ipod with nearly 1000 songs with my own personal library on itunes (which is currently empty) w/o losing the songs currently on my ipod and having to drag them to my itunes library from scratch. The same applies for my son's ipod and itunes library.
My daughter's ipod only had about 350 songs, which I wound up wiping out, so I had to start from scratch putting songs in her (itunes) library, which I can now synch with her ipod. However, that would be really time consuming to do with mine and my son's ipods, so I'm hoping to figure out a way to get the songs already on our ipods into our individual itunes libraries now. -
Still need help with changing hostname on Solaris 10
Hello.
I have some difficulties with changing host name of my computer.
It is DHCP Client.
AS I understand there are the following steps that I have to do:
1. Edit the /etc/default/dhcpagent file and change the line that reads the following:
#REQUEST_HOSTNAME=no
to
REQUEST_HOSTNAME=no
2. There are two empty /etc/hostname files: hostname and hostname6.
Do I have just to put there hostname?
3. /etc/hosts has what I need to change.
4. I was unable to find /etc/nodename. Do I have to create it? What properties should contain this file?
5. hostname <new hostname>
In previous time when I tried to change host name with Management Console my system crashed, I changed: /etc/hosts, but it didn't work.
Thank you.Hello.
Using DHCP you may really have problems changing the hostname.
The fact is: The DNS server may assign your machine a host name which has nothing to do with the host name you sent to the DHCP server. Depending on the server (typically DHCP and DNS server are the same machine) nothing will really work. (This is the case with my configuration where the servers are located on a DSL router.)
I solved the problem the following way:
* I created two host names (MyMachine and MyMachineNet) in the /etc/hosts file (Solaris 10 and newer: /etc/inet/ipnodes must be changed, too.)
* "MyMachine" is 127.0.0.1 (localhost):
127.0.0.1 localhost MyMachine
192.168.178.100 MyMachineNet* I assigned the name "MyMachineNet" to the network interface in /etc/hostname.networkcard.
* I use DHCP
The computer name (in /etc/nodename) is "MyMachine". Some programs (e.g. Gnome !) establish a TCP/IP connection to "MyMachine" instead of "localhost" (I do not understand why). These programs are now satisfied because the host name "MyMachine" represents 127.0.0.1 (localhost).
I know that there is a switch that tells Solaris to take the machine name from DHCP/DNS instead of /etc/nodename. Unfortunately I forgot where it is.
Martin -
Still need help with TDS420A scope...
I have a new TDS420A Tektonix oscilloscope here and I am trying to display
a continuous wave from it to the PC. I have d/l
all the drivers from the
NI site and have made a program that will display
a waveform. The problem
arises when I try to display the waveform in a more
"real time" mode. I
am dealing with low frequency waves and they "scroll"
across the display
on the TDS420A, but when I try to view them this
way using my VI, it keeps
resetting itself. I have already wired a constant
False expression to the
reset connection on the Intialize.vi dr
iver so that
is not the problem.
Any ideas/suggestions would be greatly appreciated.
Thanks!The first solution does in fact work and is probably the most
efficient way
of doing it. You can verify that it works by starting with a
new director
movie and adding a field named "t:texto1" into the cast with
the text
"Residencial Serra Verde" in the field. Next type the
following command in
the message window and press Enter
put [field "t:texto1"] = ["Residencial Serra Verde"]
You will see it return 1 which means True. Next, make the R
in the field
lower case and execute the command in the message window, it
will return 0
(true).
Now that you know this works, you need to dig deeper in your
code to find
what the problem is. Any more info you can supply? -
Create global temporary table d_desc1
( discrep_id NUMBER
,desc_1 VARCHAR2(110)
Create global temporary table d_desc2
( discrep_id NUMBER
,desc_2 VARCHAR2(110)
INSERT INTO
d_desc1
SELECT distinct
d.discrep_id
,NVL(dd.discrep_desc,'') as desc_1
FROM
discrep_ d
,discrep_desc_ dd
WHERE
d.discrep_id = dd.discrep_id
AND dd.DISCREP_DESC_SEQUENCE = 1
AND dd.html_ind <> 'Y'
AND dd.discrep_desc <> '<br>'
AND dd.discrep_desc NOT LIKE '<font Class=%'
AND d.discrep_id in (915606255, 879868258, 826503010, 824812060)
AND d.discrep_date >= '01-jan-2009'
AND d.discrep_date <= to_date('31-jan-2009')+1;
INSERT INTO
d_desc2
SELECT distinct
d.discrep_id
,case when d1.discrep_id = dd.discrep_id then d1.desc_1 || '' || dd.discrep_desc
when d1.discrep_id <> dd.discrep_id then dd.discrep_desc as desc_2
FROM
discrep_ d
,discrep_desc_ dd
WHERE
d.discrep_id = dd.discrep_id
AND dd.DISCREP_DESC_SEQUENCE = 2
AND dd.html_ind <> 'Y'
AND dd.discrep_desc <> '<br>'
AND dd.discrep_desc NOT LIKE '<font Class=%'
AND d.discrep_id IN (915606255, 879868258, 826503010, 824812060)
AND d.discrep_date >= '01-jan-2009'
AND d.discrep_date <= to_date('31-jan-2009')+1;
CREATE TABLE DISCREP_
( DISCREP_ID NUMBER,
DISCREP_DATE DATE, )
CREATE TABLE DISCREP_DESC_
( DISCREP_ID NUMBER,
DISCREP_DESC_SEQUENCE NUMBER ,
DISCREP_DESC_DATE DATE ,
DISCREP_DESC NVARCHAR2(100) ,
HTML_IND CHAR(1 BYTE) ,
PERSON_ID NUMBER
discrep_desc for a given discrep_id can have several discrep_desc_sequence for the same date. I need to put them on one line and be able to query it by discrep_id to update a column in another table with the data. I don't plan to use global temporary tables in my procedure for this but to test it for now I am using them. the case statement is giving me d1.desc_1 || '' || dd.discrep_desc and dd.discrep_desc for a given discrep_id instead of just dd.discrep_desc if the discrep_id isn't in d_desc1 and d1.desc_1 || '' || dd.discrep_desc if the discrep_id is in both tables. the first insert should give you 3 rows and the second insert should only give you 3. 826503010 is only in d_desc2 and 879868258 is only in d_desc1. if you know of a loop or anything else that might work better please give me an idea how to write it. I am using oracle 10g.
thanks.figured out myself. Thanks.
-
Hi,
I have spent since Sunday playing phone tag in regrades to my case. I called yesterday and explaned everything about my case to a supervisior and was told it would be handled and I would receive points to my account for $25.00. I was not given a case number, but was told it was put into the system. So far, nothing was been resolved. I am losing faith and patience in this and need some help.
Thanks
ChrisHello Seminole30-
Welcome to Best Buy Unboxed! We appreciate your patience in receiving the point adjustment on your MyBestBuy account.
Using the email address you used to register onto the forum, I was able to find the pending fund. It looks like everything is in order and your fund is being processed accordingly. To the best of my knowledge, a fund can take up to 5 business days after the fund was issued to reflect on your MyBestBuy account.
Thank you for your time,
Karina|Social Media Specialist | Best Buy® Corporate
Private Message -
I still need help with this minor upgrade.
I have an 800mhz g4.
The 800 G4 can get really clunky and slow sometimes, I've seen a couple of Fp's on ebay for 174 that are 1.25ghz.
Would it be worth upgrading the G4 to a 1ghz+ machine?
I don't really do anything on the computer except browser the internet and use IM, Even the web browser can be a little slow sometimes too!If you like these iMac and If your looking to sell your iMac G4 for a faster one iMac G4, I would recommend looking at the 1.25 Ghz, USB 2.0 models selling on ebay. These can take up to 2.0Gbs of RAM instead of 1 Gb.
Obviously, you'll pay a little more for the higher spec'd models.
A lot of things can make a Mac slow.
On the internet, if you're on a broadband connections speeds vary with the time of day and the amount of traffic upstream from you.
If your hard drive is filling up, this can slow your Mac if it's close to being full.
Ideally, you show have as a minimum at least 15% to 20% of your total drive space left to insure your Mac can still run optimally. Less this this can start to show troubles.
Do you run computer maintenance on your iMac?
All computers, even Macs, need occasional maintenance to insure good operation.
Do you repair permissions when your Mac crashes or when you install new programs?
Do you have any third party disk utilities such as DIsk Warrior from Alsoft or TechTool Pro from Micromat?
Over time, data corruption/fragmentation can make any computer or Mac slow.
My Mac just informally told me a few days ago that I needed to run some disk repair.
So I used TechTool Pro to do this. Mac is running fine now.
Without some semi-routine computer maintenance, over an extended period of time, your iMac can an did get slow.
All I am saying is if you decide to purchase a better spec Mac, that machine will eventually get slow too if no regular computer maintenance is not done.
Message was edited by: MichelPM
Maybe you are looking for
-
How do I customize a Dialog Box theme for my macbook pro?
I am tired of the gray dialog boxes. If possible, I would like to use a picture. I also want a different color bar on the top of the screen. I also would like a different color scroll bars. I also want different options (as in colors) for cursors. Th
-
Is there any way to force Safari to view the desktop version of a website? Any help will be appreciated! Thank you.
-
This problem happened intermittently in the past but now happens every time I plug in the phone. I suspect it might be a problem with my computer, an Acer Aspire 4530, perhaps with it's charging function via usb ports? The phone makes the same buzzin
-
JAVA Drawing Graphics Save as JPEG?
My problem is this, I am trying to save my g2 graphic image to a jpg. This is how I have things setup, I will show code and my thoughts. What I need is help to figure out how I could save seperate .java files graphics g to the jpg format from a JFile
-
Migration from SQL Server to Oracle issue
Hi, While trying to migrate SQL Server to Oracle via Standard Migration method, I got stuck at the point where it says..... To perform online capture, right-click the connection name in the Connections navigator and select Capture database-type (for