Home > Software engineering >  Object types of public variables how to pass
Object types of public variables how to pass

Time:09-23

I want to define the type of an object of public variables, but the transfer failed, the code is as follows:
 as the object of public doc 
Public range1 as object

Private sub officecontrol1_ondocumentopened (byval file as string, byval document as object) 'third party OCX control provides the function of
The set of doc=document
The set range1=doc. Range (start:=0, end:=10)
End sub

Private sub command2_click ()
Text3. Text=doc. Range (start:=0, end:=10) 'there will not be able to quote, error message "object variables"
Text4. Text=range1 'here is empty has not passed the result of the
End sub

Question 2: can't define dim doc as new object, I am using VB6.0 by use the lite version, what's the problem

CodePudding user response:

That estimate is: doc object is empty, if you monitor your doc transfer success,

CodePudding user response:

Why send two posts?
VB plate is very sleepy, you don't have to worry about "post sink" basic,
  • Related