🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.visualbasic.ver3
3 messages
3 total messages Started by Kunte Kinte Mon, 13 Dec 1999 00:00
error13 (Type mismach)
#73
Author: Kunte Kinte
Date: Mon, 13 Dec 1999 00:00
8 lines
1143 bytes
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
Re: error13 (Type mismach)
#74
Author: millionsteve
Date: Tue, 14 Dec 1999 00:00
23 lines
1433 bytes
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.
Re: error13 (Type mismach)
#72
Author: 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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads