New topic: 

How do I assign a Picture to a variable of type picture?

<http://forums.realsoftware.com/viewtopic.php?t=47508>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        HMARROQUINC          Post subject: How do I assign a Picture to 
a variable of type picture?Posted: Fri Apr 05, 2013 12:08 am                    
             
Joined: Sun Jan 25, 2009 5:11 pm
Posts: 548
Location: Guatemala, Central America                Hi, 

One of those nights... I just can't figure out this one:

I have a class with a property of type picture and I want to assign the image 
from an image well to that property. I just can't figure out how.

This is what I was attempting to do:
dim p as Picture
p = imgLogo.Image
if p <> nil then
  self.company.logo = p // company is a class instance, logo the picture 
property
end if


I get an out of bounds exception in the self.company.logo = p line... don't get 
it.

Help is appreciated.      
_________________
Future RS guru.
Ride the world!  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to