Posted: Tue Sep 17, 2002 4:01 pm
Restored from previous forum. Originally posted by fweil.
Hi,
I am having a guess about the best way to make two variables, even of different types, having the same start address.
Some years ago I was designing Fortan apps using Equivalence keyword which allow to make ie the following :
Dim text[1000] as string * 1 (means a 1000 single characters text array)
Dim array[1000] as byte (means a 1000 single bytes array)
Equivalence text, array
From there you can either look at text or array at the same address.
How would one here do the same to make a fixed start address for both variables in good regular PureBasic coding ?
KRgds
Francois Weil
14, rue Douer
F64100 Bayonne
Hi,
I am having a guess about the best way to make two variables, even of different types, having the same start address.
Some years ago I was designing Fortan apps using Equivalence keyword which allow to make ie the following :
Dim text[1000] as string * 1 (means a 1000 single characters text array)
Dim array[1000] as byte (means a 1000 single bytes array)
Equivalence text, array
From there you can either look at text or array at the same address.
How would one here do the same to make a fixed start address for both variables in good regular PureBasic coding ?
KRgds
Francois Weil
14, rue Douer
F64100 Bayonne