Cargo on a Bitmap Control

Cargo on a Bitmap Control

Postby Eoeo » Mon Jul 16, 2012 5:55 pm

I made some bitmaps controls on a dialogs

I must assign for each bmp a cargo value to assign values

before I used btnbmp with this feature

sample :
aBtn[nbotone]:bLClicked:= {|oBtnOmb| Menu_action oBtnOmb,oFree,oPanel) }
aBtn[nbotone]:cargo := { 'Free', n, "O",ny }


then If I call the third value on function menu_action and it make error



IF oBtnOmb:cargo[3]="O"

......


HOw I can make to save a cargo values ?
User avatar
Eoeo
 
Posts: 222
Joined: Mon Jun 04, 2012 12:00 pm

Re: Cargo on a Bitmap Control

Postby Antonio Linares » Mon Jul 16, 2012 7:40 pm

Please copy the error log here
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Cargo on a Bitmap Control

Postby Eoeo » Mon Jul 16, 2012 7:51 pm

error,log

note FiveWin Version: FWHX 12.03 but you sent me 12.04


Code: Select all  Expand view
Application
===========
   Path and name: C:\Work\Prg\BikiniL\BikiniL.Exe (32 bits)
   Size: 3,592,704 bytes
   Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715)
   FiveWin  Version: FWHX 12.03
   Windows version: 6.1, Build 7600

   Time from start: 0 hours 0 mins 3 secs
   Error occurred at: 16-07-2012, 21:50:35
   Error description: Error BASE/1004  Class: 'NUMERIC' has no exported method: CARGO
   Args:
     [   1] = N   36

Stack Calls
===========
   Called from:  => CARGO( 0 )
   Called from: Source\PBeach.prg => MENU_AZIONI( 1092 )
   Called from: Source\PBeach.prg => (b)LOAD_BEACH( 639 )
   Called from: .\source\classes\WINDOW.PRG => TWINDOW:LBUTTONDOWN( 1900 )
   Called from: .\source\classes\CONTROL.PRG => TBITMAP:LBUTTONDOWN( 540 )
   Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1687 )
   Called from: .\source\classes\BITMAP.PRG => TBITMAP:HANDLEEVENT( 521 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 3153 )
   Called from:  => WINRUN( 0 )
   Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 980 )
   Called from: Source\main.prg => TAPPLICATION:ACTIVATE( 358 )
   Called from: Source\main.prg => MAIN( 58 )
User avatar
Eoeo
 
Posts: 222
Joined: Mon Jun 04, 2012 12:00 pm

Re: Cargo on a Bitmap Control

Postby Antonio Linares » Wed Jul 18, 2012 7:33 pm

You are accessing a number, not an object
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests