I would like to see a function in PBDLL7 that lets you create a
name using string manipulation and then Zap it with this new function
which will convert it into a powerbasic control name,,,
erm.. perhaps I can best illustrate this with an example
(by the way, the new 'zap' function would need an error checking part as well)
Zap = "FOR"
If ZapErr THEN EXIT FUNCTION 'Does this control name exist?
Zap a& = 1 to 10
'do stuff
NEXT
Another example
a$ = "mid$left$right$"
b$ = "Hello there"
Zap = mid$(a$, 5, 5) 'Left$
IF ZapErr THEN EXIT FUNCTION
c$ = Zap(b$, 5)
[/code]
Now you're going to ask me why aren't you
Well I remember needing to do this a few times but I can't remember the
explicit instances, can anyone think of any?
Still being able to programatically calculate functions is bound to be
a useful thing isn't it? (I'll bet no other programming language has it...)
Ian
------------------
name using string manipulation and then Zap it with this new function
which will convert it into a powerbasic control name,,,
erm.. perhaps I can best illustrate this with an example
(by the way, the new 'zap' function would need an error checking part as well)
Zap = "FOR"
If ZapErr THEN EXIT FUNCTION 'Does this control name exist?
Zap a& = 1 to 10
'do stuff
NEXT
Another example
a$ = "mid$left$right$"
b$ = "Hello there"
Zap = mid$(a$, 5, 5) 'Left$
IF ZapErr THEN EXIT FUNCTION
c$ = Zap(b$, 5)
[/code]
Now you're going to ask me why aren't you

Well I remember needing to do this a few times but I can't remember the
explicit instances, can anyone think of any?
Still being able to programatically calculate functions is bound to be
a useful thing isn't it? (I'll bet no other programming language has it...)
Ian
------------------
Comment