User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,992 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,986 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

'Object variable or With block variable not set' Error

Join Date: Jan 2005
Location: Chester
Posts: 3
Reputation: michaelsowa is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
michaelsowa michaelsowa is offline Offline
Newbie Poster

Solution Re: 'Object variable or With block variable not set' Error

  #2  
Jan 28th, 2005
Hi there,

try adding me. in front of your function call.

For instance:

me.MonthCheck(MonthCount)


I tampered with your function to get it to work. Its probably not all needed but some of it might be. I always use codebehind you see I don't use inline coding anymore. I;m not that familiar with writing function within the page like you have,...

	
public Function MonthCheck(num as integer) as string

	If num < 10 Then
		MonthCheck = "0" & cstr(num)
	Else
		MonthCheck = cstr(num)
	End If

End Function
Reply With Quote  
All times are GMT -4. The time now is 7:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC