Restored from previous forum. Originally posted by Kale.
being a complete noob with PB, i've noticed variable name using 'dot' notation e.g.:
Path.s=Space(256)
can anybody please give me a quick overview of this? i have used a few languages before (python, javascript, darkbasic) and i'm a pretty confident coder but this puzzles me. also one more question is a procedure in PB the same as a function in other lanuages? is it just a different name?
Thanks,
--kale
'dot' notation?
-
BackupUser
- PureBasic Guru

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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Andre.
The 'dot' notation works like this:
Byte.b (Variable uses 1 Byte in memory - range: -128 to +127)
Word.w (Variable uses 2 Byte in memory - range: -32768 to +32767)
Long.l (Variable uses 4 Byte in memory - range: -2147483648 to +2147483647)
Float.f (Variable uses 4 Byte in memory - range: unlimited)
String.s (String uses length of string +1 - max. length: currently 64kb)
For strings could also be used String$ instead of String.s
Regards
André
*** German PureBasic Support ***
The 'dot' notation works like this:
Byte.b (Variable uses 1 Byte in memory - range: -128 to +127)
Word.w (Variable uses 2 Byte in memory - range: -32768 to +32767)
Long.l (Variable uses 4 Byte in memory - range: -2147483648 to +2147483647)
Float.f (Variable uses 4 Byte in memory - range: unlimited)
String.s (String uses length of string +1 - max. length: currently 64kb)
For strings could also be used String$ instead of String.s
Regards
André
*** German PureBasic Support ***