View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
John_John John_John is offline
external usenet poster
 
Posts: 40
Default Very basic question, please

Hi!

frmSerial.imgLabelA.Picture =LoadPicture(imgDecca)

imgDecca must be a full fille name string (path and fillename) of the picture.

John

Ο χρήστης "kirkm" *γγραψε:


This must be blindingly easy, but I can't figure it.

The working example is -

frmSerial.imgLabelA.Picture = frmLabelIcons.imgDecca.Picture

However, the 'imgDecca' bit is a variable string. So how do you
properly code the equivalent of this -

frmSerial.imgLabelA.Picture = frmLabelIcons. & "imgDecca" & .Picture

I've tried everything I can think of ! Brackets, CStr... you name it.
They all fail.

Thanks for any help.

Cheers - Kirk