🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.visualbasic.ver3
Article #72

Re: error13 (Type mismach)

#72
From: Rama
Date: Wed, 22 Dec 1999 00:00
42 lines
2089 bytes
Hi,
I understand your problem,by default whatever you enter in text boxes
are assumed as text.If you want to manipulate the values entered in the
text boxes you should convert the value entered in the text vboxes to
the right data type
example:
to convert into date use CDate
to convert into number use Cint
to convert into single use csng......
If you want numbers only then use cint.
Bye,
Ramakrishna.
In article <834f9e$arr$1@nnrp1.deja.com>,
  millionsteve@usa.net wrote:
> Huh? I don't understand you question fully, but I think you are asking
> if there is a way to get the value of the text in a text box?
>
> n = val(text1)
>
> In article <Kle54.4$2s1.355@news.siol.net>,
>   "Kunte Kinte" <kunte@slo.net> wrote:
> > how to chase in VB 5 error:
> > Example When run my programs,
> >  if  in textbox   empty VB to iform error13(Type mismach) how to
catch
> this
> > error .
> > If posible that textbox (properties)  to know what to write (text or
> numer)
> > in textbox.
> > In my program used only numers .
> >  LP Andrej
> >
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.
Technical Details
Message-ID: <83r7p7$249$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <Kle54.4$2s1.355@news.siol.net> <834f9e$arr$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108062,a717b1b8a2caebe9
X-Google-Attributes: gid108062,public
X-Google-Thread: 110e3b,a717b1b8a2caebe9
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 1023e1,a717b1b8a2caebe9
X-Google-Attributes: gid1023e1,public
From: Rama <ramaa@my-deja.com>
Subject: Re: error13 (Type mismach)
Date: 1999/12/22
Message-ID: <83r7p7$249$1@nnrp1.deja.com>
X-Deja-AN: 563822364
References: <Kle54.4$2s1.355@news.siol.net> <834f9e$arr$1@nnrp1.deja.com>
X-Http-Proxy: 1.1 x27.deja.com:80 (Squid/1.1.22) for client 205.191.64.116
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Wed Dec 22 19:11:39 1999 GMT
X-MyDeja-Info: XMYDJUIDramaa
Newsgroups: alt.comp.lang.visualbasic.ver3,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 95; DigExt)