FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Cargo on a Bitmap Control
Posts: 222
Joined: Mon Jun 04, 2012 12:00 PM
Cargo on a Bitmap Control
Posted: Mon Jul 16, 2012 05: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 ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Cargo on a Bitmap Control
Posted: Mon Jul 16, 2012 07:40 PM

Please copy the error log here

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 222
Joined: Mon Jun 04, 2012 12:00 PM
Re: Cargo on a Bitmap Control
Posted: Mon Jul 16, 2012 07:51 PM
error,log

note FiveWin Version: FWHX 12.03 but you sent me 12.04


Code (fw): Select all Collapse
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 )
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Cargo on a Bitmap Control
Posted: Wed Jul 18, 2012 07:33 PM

You are accessing a number, not an object

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion