[Gambas-user] type mismatch: wanted integer, got string instead

Fabien Bodard gambas.fr at ...626...
Tue Aug 25 11:38:02 CEST 2009


  if IsInteger(Val(sRain)) = TRUE THEN
     iRain = Val(sRain)

    'if it's not an integer
  ELSE


and if it's not an integer ? ... a float for exemple...


and be carefull ... select case if more slow than if then


why did you convert a string into a val to see if it is a string ???





2009/8/25 MSulchan Darmawan <bleketux at ...626...>:
> Pada Tue, 25 Aug 2009 00:50:52 -0600
> Dimitris Anogiatis <dosida at ...626...> menulis:
>
>> I hope this helps a bit more
>
> Great... this is more reasonable...
> I'll try it first...
> Thank you guys...
>
> --
> Cheers,
> [-Sulchan-]
> Terbang dengan claws-mail 3.7.2
> Mendarat di hardy heron 8.04.3 LTS
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>




More information about the User mailing list