![]() |
|
#1
|
|||
|
|||
Need help with all caps codingHello! Hope everyone is well. I'm trying to figure out how to code the following:
I need to compare the 1st 5 characters in field1 to the 1st 5 characters in field2. If they are equal, then I need to insert the result in SecondaryName field ELSE put in Name1 field. However, the comparision has to be done in all caps. So essentially, the first 5 characters in field1 and field2 will be all caps. Any ideas or suggestions???? This is what I have so far, but can't figure out the all caps part: if the first 5 characters in ALL CAPS in Fields("NAME1") == _ first 5 ALL CAPS characters in Fields("ACCOUNT_NAME") THEN Targets(0).Records("Contact_1").Fields("Secondary_ Name__c") else Targets(0).Records("Contact_1").Fields("LastName") Thanks in advance! Diggity |
|
#2
|
||||
|
||||
Re: Need help with all caps codingMODERATOR: move to misc. programming?
diggity_d: Is that VB code? ...(looks similar to me, at least) Basically, the operation would involve taking the first 5 characters [function Left()] of each string, convert that portion to uppercase [function UCase()] (I assume that the strings are NOT already in this format?) -- similar to this: VB / Visual Basic Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Flickr uploads of IA pictures by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Coding Contest #1 | davis | Miscellaneous Programming Forum | 0 | 12-Jun-2006 08:29 |
| i really need help in coding this applet.. i gave up !! plz help | 123awd | Java Forum | 7 | 02-Nov-2005 03:33 |
| Need help with Simple 1D Array coding project | rho | C++ Forum | 2 | 27-Jun-2005 19:05 |
| PHP/MySQL coding issue | cmarti | MySQL / PHP Forum | 3 | 26-Jul-2004 08:01 |
| Pls help in this coding. | harsha | C++ Forum | 5 | 08-Apr-2004 20:48 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The