i am just wonderibg if you can help a new coder out with the following problem.
I need to create a reference to an existing form from a fuction in a module. i then want to pass this object reference into other functions to do this and that.
e.g.
function makeobj(existingFormName)
//create the reference here (somehow)
call subDoThis(existingFormNameReference)
call subDoThat(existingFormNameReference)
end function //makeobj
sub subDothis(aFormReference, newcaption)
aFormReference.Label1.caption = newcaption
end sub
sub subDoThat(aFormReference, componentname)
aFormReference.componentname.delete
end sub
Please can some one point the way.
Thanks#Spence
I need to create a reference to an existing form from a fuction in a module. i then want to pass this object reference into other functions to do this and that.
e.g.
function makeobj(existingFormName)
//create the reference here (somehow)
call subDoThis(existingFormNameReference)
call subDoThat(existingFormNameReference)
end function //makeobj
sub subDothis(aFormReference, newcaption)
aFormReference.Label1.caption = newcaption
end sub
sub subDoThat(aFormReference, componentname)
aFormReference.componentname.delete
end sub
Please can some one point the way.
Thanks#Spence