Oct 26, 2001 #1 ftpdoo Programmer Joined Aug 9, 2001 Messages 202 Location GB Hi, I'll be returned a number which will be 1 - 26.. How can I replace the number with a letter of the Alphabet?? ie if intNumber = 1 Then strLetter = A elseif ....... end if There must be a better way than this to do it???? Thnx, Jonathan
Hi, I'll be returned a number which will be 1 - 26.. How can I replace the number with a letter of the Alphabet?? ie if intNumber = 1 Then strLetter = A elseif ....... end if There must be a better way than this to do it???? Thnx, Jonathan
Oct 26, 2001 1 #2 dsi Programmer Joined Mar 13, 2000 Messages 964 Location US strLetter = Chr(intNumber + 64) Upvote 0 Downvote
Oct 26, 2001 1 #3 jebry Programmer Joined Aug 6, 2001 Messages 3,006 Location US Hi Jonathan! Try using the Char function: strLetter = Char(intNumber + TheDifference) I just realized that I can't remember the ASCII values for A-Z, but I imagine you can find them pretty easily. hth Jeff Bridgham bridgham@purdue.edu Upvote 0 Downvote
Hi Jonathan! Try using the Char function: strLetter = Char(intNumber + TheDifference) I just realized that I can't remember the ASCII values for A-Z, but I imagine you can find them pretty easily. hth Jeff Bridgham bridgham@purdue.edu
Oct 26, 2001 Thread starter #4 ftpdoo Programmer Joined Aug 9, 2001 Messages 202 Location GB Thnx.. ) Upvote 0 Downvote