15 lines
459 B
Plaintext
15 lines
459 B
Plaintext
Struct myStruct, value As long, _
|
|
string As ptr
|
|
myStruct.value.struct = 10
|
|
myStruct.string.struct = "Hello World!"
|
|
|
|
structName$ = "myStruct"
|
|
numElement$ = "value"
|
|
strElement$ = "string"
|
|
|
|
Print Eval$(structName$ + "." + numElement$ + "." + "struct")
|
|
|
|
'Pay close attention that this is EVAL() because we are
|
|
'retrieving the PTR to the string which is essentially a ulong
|
|
Print Winstring(Eval(structName$ + "." + strElement$ + "." + "struct"))
|