Actually, this is a 2-part question:
1. How does PB store strings? The reason I ask is that when looking at a character in a string use a 32-bit BYTE PTR I get a different value than when using the ASC function. For example:
DEFINT A - Z
DIM WorkPtr AS BYTE PTR
I = 10
DIM Work$(1 TO 10)
WorkPtr = VARPTR32(Work$(1))
Work$(1) = "HELLO"
L = ASC(Work$(1),1)
Z = @WorkPtr
END
L and Z will have different values.
2. Why does program execution time increase with the addition of variables in a PUBLIC list, even if the variables are not used?
1. How does PB store strings? The reason I ask is that when looking at a character in a string use a 32-bit BYTE PTR I get a different value than when using the ASC function. For example:
DEFINT A - Z
DIM WorkPtr AS BYTE PTR
I = 10
DIM Work$(1 TO 10)
WorkPtr = VARPTR32(Work$(1))
Work$(1) = "HELLO"
L = ASC(Work$(1),1)
Z = @WorkPtr
END
L and Z will have different values.
2. Why does program execution time increase with the addition of variables in a PUBLIC list, even if the variables are not used?
Comment