New topic: If statement question with mid and structures
<http://forums.realsoftware.com/viewtopic.php?t=45686> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message basestring Post subject: If statement question with mid and structuresPosted: Mon Oct 22, 2012 11:55 pm Joined: Sat May 28, 2011 11:28 pm Posts: 103 Location: Beijing China Hi, I'm trying to encrypt a password, but I have so difficulties some how the if statement is not checking if Uppercase or Lowercase. this is my code Function with password as string dim x, y as integer dim N as string for x=1 to len(password) for y = 0 to criptions.Ubound if criptions(y).Symbole = mid(password,x,1) then N=N + criptions(y).key end if next y next x Return N cription is an array of an structure that holds symbole as string * 1 and key as string * 5 just say that criptions(0).symbole = "a" criptions(1).symbole = "A" so when the if statement is checking the mid of password and it is "a", then it returns both criptions key values any suggestions? _________________ For great Music got to my podcast Website!!! http://podcast.1945mf-china.com Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
