[Gambas-user] What replaces isSTring
richard terry
rterry at ...1946...
Tue Nov 30 01:09:42 CET 2010
On Tuesday 30 November 2010 10:12:39 Benoît Minisini wrote:
Ok, is working again ok, thanks, can save the patient's notes, insert pictures
into notes again
Thanks.
> > wasn't really paying attention to the discussion on this, but
> >
> > IsString is gone in the latest update and its blown away all our database
> > saving routines (we don't use the gambas ones).
> >
> > This code:
> >
> > If IsString(field) Then no longer works.
> >
> > Any help appreciated.
>
> See the comments I made to Ron.
>
> IsString(value) must be replaced by TypeOf(value) = gb.String.
>
> And more generally, IsXXXX(value) must be replaced by TypeOf(value) =
> gb.XXXX
>
> Only IsNull() has been kept. The other IsXXXX() functions now check if a
> string can be converted safely to a boolean, an integer, a long, a float or
> a date.
>
> But you should tell in which context you use IsString(), to be sure that
> you didn't make a mistake by using it at the first place.
>
> > In the meantime - Benoit - How do I roll back to a previous SVN version
> > so I can continue working/using my program.
> >
> > Richard
>
> svn update -r <REVISION> to update your local copy of Gambas sources to the
> revision <REVISION>.
>
> Sorry for the inconvenience!
>
> Regards,
>
More information about the User
mailing list