2
Answers

Object variable or with block variable not set

Ramco Ramco

Ramco Ramco

2w
51
1

Hi

  I am getting error - Object variable or with blockvariable not set

picoriginal.Picture = LoadPicture("c:\image.jpg")

Dim picoriginal As PictureBox
Call SaveImageFromAPI(apiUrl, UsrName, Pword, tno, picoriginal)

Public Sub SaveImageFromAPI(apiUrl As String, UserName As String, Pwd As String, TrNo As String, picoriginal As PictureBox)

picoriginal.Picture = LoadPicture("c:\image.jpg")
Thanks

Thanks

Answers (2)