hi friends!
I'm new to vbasic. I just want to know, how to set the precision for variables defined as double. plz send me the syntax
Thanks in advance.
bye
elanch

Hi,

u cant set the presicion for a Double, u have to use either "Format" or "Round"

Dim DblVarr As Double
 
Text1.Text =  Format(DblVarr,"0.00")
Or 
Text1.Text =  Round (DblVarr,2)

Regards
Veena

Thank u for replying. I'm using VB5. I have tried with Round Command already but it does'nt work.I Will try with Format command now and reply u again.

hi!
Format command is working fine. Thank u.

I'm having doubt in Ms-access database linked with Vbasic. I request you to help me regarding this.
Thank u in advance

hI,

U can post ur doubts here.

Regards
Veena

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.