Page 1 of 1

Posted: Mon Oct 14, 2002 7:08 pm
by BackupUser
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

Posted: Mon Oct 14, 2002 7:27 pm
by BackupUser
Restored from previous forum. Originally posted by Kale.

sorry, i've read the manual now :) DOH!!!!!!!!!

Posted: Mon Oct 14, 2002 7:30 pm
by BackupUser
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 ***