Tech note 34 has some examples of this, using execute instead of NSBExecute, 
but still useful.
http://www.nsbasic.com/ce/info/technotes/TN34.htm

The error message, I would interpret as "I need the value 'pic1' to be an 
object, but it's not."

--- In [email protected], "styskul" <epank...@...> wrote:
>
> Unfortunately I don't have NSB installed here, so I'm just guessing at this 
> point, but I think you need to do the following:
> 
> NSBExecute picName & ".ScaleMode = 3" ' pixels
> 
> You would use similar calls for the other two picName. statements.  The 
> problem is that when you just try and do picName.ScaleMode = 3, it's looking 
> for an object called picName, which it's not going to find.  As to why the 
> error specifically says "pic1" as the object not found I'm not sure, other 
> than that would be typical Microsoft.
> 
> 
> --- In [email protected], "bwolodko" <ben.wolodko@> wrote:
> >
> > Why do I get the Error ...
> > 
> > " Microsoft VBScript runtime error line 95 char 0 
> > Object required "pic1"
> > 
> > Here is the code
> > 
> > For I = 1 To 15
> >    If I <= 5 Then
> >    X = 70
> >    Y = 75 + ((I-1)*70) 
> >    End If
> >    If (I > 5) And (I <=10) Then
> >    X = 250
> >    Y = 75 + ((I-6)*70) 
> >    End If   
> >    If (I > 10) And (I <=15) Then
> >    X = 250
> >    Y = 75 + ((I-11)*70) 
> >    End If 
> >    picName = "pic" & CStr(I)     
> > AddObject "NSCEPictureBox.NSCEPictureBoxCtrl.1",picName,X,Y,220,50
> > picName.ScaleMode = 3 ' pixels
> > picName.BorderStyle = 0 ' none
> > picName.Picture = DrlB(I)
> > Next
> > 
> > What am I missing?
> > 
> > Thanks
> > Ben
> >
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to