473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Log Build ( help with ur code)

hey man thanks for the code except i am getting a error at this line with
the 1 by it

Private Sub Form_Load()
Dim strTMP As String ' declare the variable to hold the text
strTMP = "The form is loading" ' fill with text
'call the sub writeLog and send with it the text
Call writeLog(strTMP)
End Sub
Private Sub writeLog(strLog As String)
Dim nFile As Byte 'declare the variable to hold the file
nFile = FreeFile 'get the available file number
'open the file "aim.log" so we can write to it.
1 Open App.Path & "\" & aim & "aim.log" For Output As n%
'write to the file , the time-date, a comma, and strLog.
Print nFile, CStr(Now) & " " & logItem
Close n% 'close the file
End Sub

--
Frank R. Jr.
Jul 17 '05 #1
1 1804
On Fri, 1 Oct 2004 20:39:54 -0500, "Frank R. Jr."
<bl******@hotmail.com> wrote:
hey man thanks for the code except i am getting a error at this line with
the 1 by it

Private Sub Form_Load()
Dim strTMP As String ' declare the variable to hold the text
strTMP = "The form is loading" ' fill with text
'call the sub writeLog and send with it the text
Call writeLog(strTMP)
End Sub
Private Sub writeLog(strLog As String)
Dim nFile As Byte 'declare the variable to hold the file
nFile = FreeFile 'get the available file number
'open the file "aim.log" so we can write to it.
1 Open App.Path & "\" & aim & "aim.log" For Output As n% Open App.Path & "\" & aim & "aim.log" For Output As nFile 'write to the file , the time-date, a comma, and strLog.
Print nFile, CStr(Now) & " " & logItem
Close n% 'close the file
End Sub


Also I would not Dim nFile as a Byte

See the Help File on the Open Statement
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MINA | last post by:
We have a Solution with about 30 VB.NET projects in it. The build runs fine on most PC's. We have one notebook, however that the build runs very slow on. CPU usage is minimal (<5%) and HDD...
3
by: James | last post by:
Im having trouble building/running a program which was written under Visual Studio 2000 & .NET Framework 1.0. Im now using a new installation of .NET 1.1 with Visual Studio 2003, otherwise there...
8
by: alanstew | last post by:
With the body tag calling out 'window onload', a function with a 'window.open' fails at the 'window.open' line. If I cut out the body tag, the function executes as normal. At first I thought it...
9
by: yevvi | last post by:
Hi, We have a product with bunch of dlls which are now built with Visual Studio 2003. We want to switch the build to use VS2005. I have read that in VS2005 runtime libraries come as...
0
by: vve | last post by:
I'm discovering a strange behaviour in an C# project using ZedGraph (https://sourceforge.net/projects/zedgraph/). After adding a signal to it, it seems that the clr goes mad for some reason. I...
4
by: slalande50 | last post by:
Hello, I am new at Python, approximately 2 weeks of experience, could someone help me please. I am trying to Automate build in Code Composer c5000 version 2.21. I am able to open a project and...
3
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hi, I have a C#.NET 2.0 application that when I try to Build it I am receiving the error: "sgen.exe exited with code -532459699" Thanks in advanced for any help. Asaf
2
by: jonas.schnelli | last post by:
hi all i'm not a experianced php builder.. :) but i try to build php with a external mcrypt.so (i only need this file!)... the build with --with-mcrypt works fine... even the make test......
11
by: minishilpi | last post by:
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000. It doesn't throw any exception in the console window. It goes throughout the code...
0
by: leoiser | last post by:
Hi all, I converted one web application(Vb.Net) created in VS2005 Framework 2.0 to VS2008 framework 3.5. (This application is using Reportviewer8.0) After convertion I cant build the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.