[WebDNA] Showif Hideif If Then Case Sensitivity
This WebDNA talk-list message is from 2020
It keeps the original formatting.
numero = 115063
interpreted = N
texte = 2692--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CFContent-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiOne of my students was surprised to find out there was no case sensitivy =settings for comparisons. This was causing a bunch of issues with =comparing certain strings. A quick search on the archives led me to the surprising fact that he =was indeed right. After mulling around for a few minutes to try and come =up with a solution I came up with an easy function that does this =quickly and easily.If the is useful to someone feel free to throw it in your Functions =Library and enjoy.Have a good weekend everyone.Alex[function name=3DCC][table name=3DCS&fields=3DC1][w1][/table][text]CW=3D[search =table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/text][return][CW][/return][/function]Just call the function with the 2 strings.[CC w1=3Dabc&w2=3DAbc]This lets you easily do following:[showif [CC w1=3Dabc&w2=3DAbc]=3D1]They are the same[/showif]or if you prefer[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text][showif [casecheck]=3D1]They are the same[/showif]Alexander J. McCombieComputer Coding Instructor / Career & Technical EducationCenter for Instruction, Technology & Innovation179 County Route 64, Mexico, NY 13114P: 315.963.4411amccombie@citiboces.org
=--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CFContent-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiOne =of my students was surprised to find out there was no case sensitivy =settings for comparisons. This was causing a bunch of issues with =comparing certain strings.
A quick search on the archives led me to the surprising =fact that he was indeed right. After mulling around for a few minutes to =try and come up with a solution I came up with an easy function that =does this quickly and easily.
If the is useful to someone feel free =to throw it in your Functions Library and enjoy.
Have a good weekend everyone.
Alex
[function =name=3DCC]
[table name=3DCS&fields=3DC1]
[w1][/table]
[text]CW=3D[search =table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/te=xt]
[return][CW][/return]
[/function]
Just call the function =with the 2 strings.
[CC =w1=3Dabc&w2=3DAbc]
This lets you easily do =following:
[showif [CC w1=3Dabc&w2=3DAbc]=3D1]The=y are the same[/showif]
or if you =prefer
[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text]
[showif [casecheck]=3D1]They are the same[/showif]
Alexander J. McCombie
Computer Coding Instructor / Career & =Technical Education
Center for Instruction, =Technology & Innovation
179 County Route =64, Mexico, NY 13114
P: 315.963.4411
amccombie@citiboces.org =---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CF--.
Associated Messages, from the most recent to the oldest:
2692--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CFContent-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiOne of my students was surprised to find out there was no case sensitivy =settings for comparisons. This was causing a bunch of issues with =comparing certain strings. A quick search on the archives led me to the surprising fact that he =was indeed right. After mulling around for a few minutes to try and come =up with a solution I came up with an easy function that does this =quickly and easily.If the is useful to someone feel free to throw it in your Functions =Library and enjoy.Have a good weekend everyone.Alex[function name=3DCC][table name=3DCS&fields=3DC1][w1][/table][text]CW=3D[search =table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/text][return][CW][/return][/function]Just call the function with the 2 strings.[CC w1=3Dabc&w2=3DAbc]This lets you easily do following:[showif [CC w1=3Dabc&w2=3DAbc]=3D1]They are the same[/showif]or if you prefer[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text][showif [casecheck]=3D1]They are the same[/showif]Alexander J. McCombieComputer Coding Instructor / Career & Technical EducationCenter for Instruction, Technology & Innovation179 County Route 64, Mexico, NY 13114P: 315.963.4411amccombie@citiboces.org =--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CFContent-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiOne =of my students was surprised to find out there was no case sensitivy =settings for comparisons. This was causing a bunch of issues with =comparing certain strings.
A quick search on the archives led me to the surprising =fact that he was indeed right. After mulling around for a few minutes to =try and come up with a solution I came up with an easy function that =does this quickly and easily.
If the is useful to someone feel free =to throw it in your Functions Library and enjoy.
Have a good weekend everyone.
Alex
[function =name=3DCC]
[table name=3DCS&fields=3DC1]
[w1][/table]
[text]CW=3D[search =table=3DCS&eqC1datarq=3D[w2]&checkCase=3Dt][numfound][/search][/te=xt]
[/function]
Just call the function =with the 2 strings.
[CC =w1=3Dabc&w2=3DAbc]
This lets you easily do =following:
[showif [CC w1=3Dabc&w2=3DAbc]=3D1]The=y are the same[/showif]
or if you =prefer
[text]casecheck=3D[CC w1=3Dabc&w2=3DAbc][/text]
[showif [casecheck]=3D1]They are the same[/showif]
Alexander J. McCombie
Computer Coding Instructor / Career & =Technical Education
Center for Instruction, =Technology & Innovation
179 County Route =64, Mexico, NY 13114
P: 315.963.4411
amccombie@citiboces.org =---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_B4AE8494-B608-45E1-911E-122CCE4B24CF--.
Alex Mccombie
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
RE: Can't get appendfile to work (1997)
[urgent] Phone number at SM (2006)
international time (1997)
Function defined inside Scope context (2005)
Help name our technology! (1997)
Sendmail & Time Issue (2001)
Online Docs? (1997)
EmailCompleted Clean Up (2001)
[LOOKUP] (1997)
Help! WebCat2 bug (1997)
Next X hits (1996)
Download capabilities (1997)
Mozilla/4. and Browser Info.txt (1997)
This might sound silly... (2000)
RE: Can a database get stomped by simultaneous access? (1997)
[shownext max=?] armed (1997)
Sample Tearoom Search Error (1997)
Help-.html extention and Serial Number not working. (2000)
[WebDNA] Search question (2012)
Strange conversions (2001)