case sensitive variables

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by talun.

Hi,
I'm intersted to know if the names of the members of the structures are case sensitive. From the help file seems that they are case insensitive but by compiling the following piece of code with PBCompiler 3.40, I have a error message: "Offset not found in this structure". If I use the uppercase all works fine

Any suggestion?

thanks
Sergio

Structure mytest
AAA.l
BBB.s
EndStructure

DefType.mytest dummy

dummy\aaa = 123
dummy\bbb = "qqqq"

Debug dummy\aaa
Debug dummy\bbb

End
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Froggerprogger.

Yes, structure-elements are case-sensitive. It tooks some time for me, to find this out on my own, too. A small (or even big :wink: hint in the helpfile would be very helpful.

Purebasic - what a nice name for a girl-friend
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will change that to make it cas insensitive. Thanks for your report !

Fred - AlphaSND
Post Reply