vb6 - Properties in VB -
below snippet written in vb .cls file :
public property request() string request = m_srequest end property public property let request(sdata string) m_srequest = sdata parserequest sdata end property in class line below used:
public sub logerror(request requestparameters, byval sdata string, iberr ciberr) dim serrorlog string serrorlog = request("monitorpath") & "\log\debug\errors" if dir(serrorlog, vbdirectory) = "" mkdir serrorlog end if . . . end sub i'm trying migrate code c#, , don't understand how request("monitorpath") returning string.
if yes - how, let not have return type?
if no - how serrorlog = request("monitorpath") & "\log\debug\errors" work?
if request("monitorpath") in class not contain property get/get request() using method within called request. (it can't call classes property without instance qualification).
Comments
Post a Comment