Please help! I'm looking for a way to create a dynamic button bar. The code is old 2.6 calling a browse window or calling @...say, @...get screens. The code pushes do statements onto function keys. I need a way to create a button bar that will allow me to pass parameters to it from the prg. Example - proc history pushes do sort, do seek, do details, etc. Proc inbound pushes do sort, do add, do viewnotes. I'd like to have the buttons change as each proc changes - setup 10 buttons on a form, pass proc names as parameters to the form & update the command button labels based on the proc called. I've read most of the threads on parameters & tried several things including
in prg:
local prog1, prog2, prog3
prog1 = wpseek
prog2 = wpsort
prog3 = wpview
do form history with prog1, prog2, prog3
In the init event of the form:
parameters prog1, prog2, prog3
test = prog1
test2 = prog2
test3 = prog3
on click events
button1 button2 button3
do test do test2 do test3
return return return
I've also tried replacing do test with do prog1, etc & that didn't work either. Also replace the parameters statement in prg with Local & also public.
I'm definately a newbie to VFP, using version 7. Any help would be appreciated.
in prg:
local prog1, prog2, prog3
prog1 = wpseek
prog2 = wpsort
prog3 = wpview
do form history with prog1, prog2, prog3
In the init event of the form:
parameters prog1, prog2, prog3
test = prog1
test2 = prog2
test3 = prog3
on click events
button1 button2 button3
do test do test2 do test3
return return return
I've also tried replacing do test with do prog1, etc & that didn't work either. Also replace the parameters statement in prg with Local & also public.
I'm definately a newbie to VFP, using version 7. Any help would be appreciated.