If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > type of data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-06, 10:26
MikeroSoft MikeroSoft is offline
Registered User
 
Join Date: Apr 2006
Posts: 47
type of data

I have a function that takes a variant, i would like to check if the param passed is a date, string , int or double, is there a way to do this?
Reply With Quote
  #2 (permalink)  
Old 06-20-06, 10:34
MikeroSoft MikeroSoft is offline
Registered User
 
Join Date: Apr 2006
Posts: 47
Instantiate new class

ooooooooooooooooopssssss

Last edited by MikeroSoft; 06-20-06 at 10:45.
Reply With Quote
  #3 (permalink)  
Old 06-20-06, 11:18
spikey_richie spikey_richie is offline
Registered User
 
Join Date: Jun 2006
Location: Colton, CA
Posts: 26
I guess the oops means you've worked it out?
__________________
Geek it till it mHz
Reply With Quote
  #4 (permalink)  
Old 06-20-06, 11:47
MikeroSoft MikeroSoft is offline
Registered User
 
Join Date: Apr 2006
Posts: 47
no, i posted my next post as an answer and dont know how to delete a post
Reply With Quote
  #5 (permalink)  
Old 06-29-06, 22:22
mkggoh mkggoh is offline
Registered User
 
Join Date: Jun 2006
Posts: 103
Quote:
Originally Posted by MikeroSoft
I have a function that takes a variant, i would like to check if the param passed is a date, string , int or double, is there a way to do this?
Try this out

Quote:
Dim para As String
Dim para1 As Integer
Dim variableType As String
para = "a"
para1 = 1

variableType = TypeName(para)
MsgBox variableType
variableType = TypeName(para1)
MsgBox variableType
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On