🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #610

Re: Is it possible in VB 5 ? I do not think so, What do you think?

#610
From: Art Tilma
Date: Mon, 01 Dec 1997 00:00
19 lines
1912 bytes
To respond to your second question first, use TYPEOF, for example

If TypeOf ActiveControl is Textbox then
    'text box instructions
Else If TypeOf ActiveControl is CommandButton then
    'command button instructions
Else
    'check out IF...Then...Else under help for more detail
End If

>2)  Can you evaluate a expression at run time.
> dim x as string
> dim y as string
> x= "text1"  ' x is the name of a text box
> y = "Caption"    'y if  a property of the text box  or
> y = "text"    'y if  a property of the text box
>
>    how do you the text1.caption or text1.text in the runtime ?
Technical Details
Message-ID: <65uq9a$mh$1@news.junction.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcf963$5aa850f0$e33bd4cc@ntmain>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c949,61c438cbc70e4437
X-Google-Attributes: gid10c949,public
X-Google-Thread: 104586,61c438cbc70e4437
X-Google-Attributes: gid104586,public
X-Google-Thread: 1053fc,61c438cbc70e4437
X-Google-Attributes: gid1053fc,public
X-Google-Thread: f5f6f,61c438cbc70e4437
X-Google-Attributes: gidf5f6f,public
X-Google-Thread: 10be7f,61c438cbc70e4437
X-Google-Attributes: gid10be7f,public
X-Google-Thread: 110e3b,61c438cbc70e4437
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 1143a7,61c438cbc70e4437
X-Google-Attributes: gid1143a7,public
X-Google-Thread: 10ab99,61c438cbc70e4437
X-Google-Attributes: gid10ab99,public
From: "Art Tilma" <artt@no_spam.silk.net>
Subject: Re: Is it possible in VB 5 ? I do not think so, What do you think?
Date: 1997/12/01
Message-ID: <65uq9a$mh$1@news.junction.net>
X-Deja-AN: 294244579
References: <01bcf963$5aa850f0$e33bd4cc@ntmain>
X-Mimeole: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Okanagan Internet Junction
Newsgroups: alt.lang.basic,comp.lang.basic.misc,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,es.comp.lenguajes.visual-basic,microsoft.public.vb.database,microsoft.public.vb.database.dao,microsoft.public.vb.databa