Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 10,713 of 10,840    |
|    H-Man to Laphan    |
|    Re: Why do my single char vars keep goin    |
|    14 Jan 09 11:17:13    |
      XPost: alt.comp.lang.visualbasic, comp.lang.basic.visual, comp.l       ng.basic.visual.misc       XPost: comp.lang.visual.basic.misc       From: I-Hate@Spam.sucks              On Wed, 14 Jan 2009 12:53:03 -0000, Laphan wrote:              > Hi All       >       > For some reason everytime I re-open my VB6 projects my single char       > variables, eg x, y, z, keep going uppercase when I want them lowercase.       >       > As soon as I change them back to lowercase all instances go back to       > lowercase, I can save the project without problems, the actual compiled app       > doesn't give a monkeys and they will stay lowercase throughout the duration       > of my programming session, but then as soon as I re-open they go back to       > upper!       >       > I know its probably a small point to most, but I want them to bloody stay as       > they were !!! :0)       >       > I don't think I've had this problem in the past.       >       > Any ideas??       >       > Thanks       >       > Laphan              I tried the following              --------------------------------------------------------       Dim x As String       Dim y As Integer              ' created a for with a label on it       Private Sub Form_Load()       x = "string"       y = 1              Label1.Caption = "string " & x & "// integer " & Str(y)       End Sub       --------------------------------------------------------              Saving, closing VB6 and reopening does not change case on x or y on my       system.              If I add a module and do a       Dim X As String       Dim Y As Integer       in the module it displays exactly the behavior you are experiencing.              Are you maybe reusing the vars somewhere?              --       HK              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca