On Fri, 2009-10-02 at 23:11 -0500, nando wrote: > Friend, > I have gone through your project and I ran it with these changes: > > (1) in SUB action_click...insert above this line: > result = (exposure * (guidenumber / distance) * (flashcompensation) * > (multicompensation)) > > these four lines: > > IF gn_feet.Value = TRUE THEN guidenumber = (input_gn.Value / 3.3) > IF gn_metres.Value = TRUE THEN guidenumber = input_gn.Value > distance = input_distance.Value > if distance = 0 then distance = 0.00001 'to prevent divide by zero error > result = (exposure * (guidenumber / distance) * (flashcompensation) * > (multicompensation)) > > (2) > Remove or REM the 3 line sub: > PUBLIC SUB input_distance_KeyPress() > distance = (input_distance.Value) > END
Hello there :) Yes, that solves the basic calculation problem. I'm still having an issue with CASE input_power.Selection ... it just doesn't work, expects an object instead of a string or some such... Thanks very much! -- Horst.
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user