Oct 26, 2001 #1 ftpdoo Programmer Aug 9, 2001 202 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 Mar 13, 2000 964 US strLetter = Chr(intNumber + 64) Upvote 0 Downvote
Oct 26, 2001 1 #3 jebry Programmer Aug 6, 2001 3,006 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