Getting pictures in RealBasic
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Jan 29 11:35:00 CST 2003
on 1/29/03 11:29 AM, Lars Lindholm at lars.lindholm at uneed.se wrote:
Hi Lars,
> Hi Ruslan!
>
> I'm having a problem in RealBasic 4.5.2 for OS X. I have a database with a
> Picture field. I can access the picture field if I go through the records
> directly in the database, but I can't access the pictures from a cursor.
> This is some example code:
>
> Dim searchString as String
> Dim selectedImage as Vcursor
> Dim p as Picture
>
> searchString = "SELECT picture FROM imageBank WHERE imageID=" +
> str(curImageID)
> selectedImage = nil
> selectedImage = mDatabase.SQLSelect(searchString)
> selectedImage.CurrentPosition = 1
>
> p = selectedImage.Field("picture").GetPicture()
Must be:
p = selectedImage.PictureField("picture"). GetPicture()
> It doesn't seem like the GetPicture function works with cursors in
> RealBasic. In Director I can get it to work though. Any help is greatly
> aprreciated.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list