S sorex Expert Licensed User Longtime User Jan 11, 2018 #1 Hello, I'm wondering what happends under the hood when you do Code: Dim var As string=somesub(string1) & string2 does this get inserted in the initialize sub as Code: var=somesub(string1) & string2 ? It works fine that's not the point but I usually give vars their values in the runtime subs.
Hello, I'm wondering what happends under the hood when you do Code: Dim var As string=somesub(string1) & string2 does this get inserted in the initialize sub as Code: var=somesub(string1) & string2 ? It works fine that's not the point but I usually give vars their values in the runtime subs.
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2018 #2 Not sure that I understand the question. There is nothing special with this line: Code: Dim var As string = somesub(string1) & string2 It first evaluates the left side and then assigns it to 'var'. Upvote 0
Not sure that I understand the question. There is nothing special with this line: Code: Dim var As string = somesub(string1) & string2 It first evaluates the left side and then assigns it to 'var'.
S sorex Expert Licensed User Longtime User Jan 11, 2018 #3 what I mean is... is there a routine to generate these code based vars before the app actually starts? Upvote 0
what I mean is... is there a routine to generate these code based vars before the app actually starts?
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2018 #4 Temporary variables are not required in most cases. Upvote 0