See Related Forum Messages: Follow the Links Below to View Complete Thread
Sorting Data From An ASCII Text String And Saving It As Text File
Hi,
I'd first like to copy paste a section of my ASCII text string over here and then ask the question.Given below is the ASCII text string:
RT 01 A_UNIT
DEV 01 A_UNIT
=ontrol Mode ON LOCAL STAT
Occupied YES OCC
CCN Chiller START CHIL_S_S
Alarm State Normal ALM
Active Demand Limit 100 % DEM_LIM
Override Modes in Effect YES MODE
=
=?
RT 01 CIRCA_AN
DEV 01 CIRCA_AN
=IRCUIT A ANALOG VALUES
Percent Total Capacity 100 % CAPA_T
Percent Available Cap. 100 % CAPA_A
Circuit Running Current 185 AMPS A_CURR
Discharge Gas Temp - A2 122.9 dF DISTMPA2
Saturated Condensing Tmp 97.5 dF TMP_SCTA
Saturated Suction Temp 41.5 dF TMP_SSTA
EXV % Open 43 % EXV_A
Variable Head Press Pct. 0 % VHPA
=
=?
Given above is a portion of my ASCII text string.I'd like to know how to sort out the data from this file and copy it in the same format as given above into a new Text File,using the delimiting characters like the white space and the "?".The "?" indicates the end of the file and the following ASCII text string after every "?" indicates the start of a new text file.
I'd be very very grateful to the person who'd give me the solution to this.Thanking you in anticipation.
Text File Coversion From ASCII To UTF 8
Hi,
I am writing a program to create text files. I want to get the text file in UTF 8 format. Can anyone of you share the script how to auto covert the file format from ASCII to UTF8 when creating the text file.
When i try it out, it only conver to unicode. NOT UTF 8.
Thanks & Cheers
Blue_Thunder
How To Tell If A File Is Ascii Text Format
Hello,
I am making a simple file viewing demo, which will display the contents of a text file in a multi-line textbox from a file selected in a directory listing. I only want to open the file if it is in "plain text" format - so files like .txt, HTML files, VB files like .frm, .vbp, and .cls would qualify but .frx would not; .exe, .xls. etc. would be excluded as well. (In the case where a non-text or binary file was selected, the multiline textbox would simply display "File is not in text format" or something to that effect.)
Without relying on the file extension, is there a way to test the file to say with reasonable certainty that it qualifies as a "plain text" file? I'd appreciate your thoughts ...
Reading From A Ascii Text File
Hello, i'm trying to read a ascii text file using the streamreader.
For simplicity, let's say my .txt file contains the following data:
a
b
c
d
e
f
g
How would i read from, let's say the first occurence of character "c" to "f"?
In pseudocode, i would be something like:
for starting charcter = "c" to 3
It would read 3 lines after "c", up to "f", and give me:
c
d
e
f
I would appreciate your help!
Convert A Unicode Text File To ASCII
I'm trying to read a text file into visual basic, change a part of it, and write it back out a text file. I had been having problems using OPEN (always resulted in an error 36), even though I had tried using LOF and EOF.
I found that the problem was the text file that I am trying to read from is in Unicode. Is there an easy way to convert this text file into an ASCII text file before I read from it?
Read Only Last Line Of Text/ascii File
Hi Guys,
I needed some help regarding file reading in VB 6. I am writing a program that needs to insert a record in a text file. The text file has following format..
Date, Time, Open Price, Close price
Now i need to insert record only if date is greater than last date in file.
So everytime I need to insert record, I have to open file and read sequentially and then I reach last record. This takes time.
IS there a way to read such file in binary or whatever so that i can get last record straight away or very quickly without going thru all records one by one.
If there is can anyone post a small code.
[Records in the (text) file is like -
01/01/2006, 1100, 123.33, 155.55
01/01/2006, 1130, 122.22, 134.33
01/01/2006, 1200, 112.22, 124.33
so on ... ]
Thanks a lot,
Cheers,
GR
Column Aligning Text Ascii Output File
Code:
For i = 0 To numMeas - 1 Step 1
Print #FileNumber, measurement(i).name, measurement(i).hexID, measurement(i).lDecimalID, measurement(i).sDecimalID
Next i
I am writing data to a text ascii file. This output file will be used as a report. I want the columns to be aligned correctly. Problem is, if the text in the first column is too long (over 13 chars) an extra tab is put in, which makes the data not align properly. Can anyone help me out, on the best way to format my output to text ascii file? vr, Xeifrank
Life is one big IF/ESLE statement
Best Control To Use To Display Contents Of An ASCII Text Appending File?
Hi,
I have a chemical analyser grinding out results for several process streams. As part of saving historical data, I format the results from each analysis into an ASCII string with timestamp, and then append the string to the appropriate sample file.
What is the easiest way to allow the user to scroll through such files?
For event logging, I have set up a series of text lables (15 say) and the used a vertical scroll bar to dispaly 15 of the last 200 events. The events are stored in a circular buffer, which contains the last 200 events. This works well, as I can color each line to indicate the type of event (yellow on red for error, white on green for result, white on blue for standard..). But the coding is fairly complex and am looking for a simple display of analytical results for a given sample stream.
In the case of the anlysis results, the data is appended, so the file just keeps growing. Presumably, monthly files will be separated and stored.
How Do I Export/save An Access Table As An Ascii Comma Delimited Text File
I need to export a table from an Access database into an ascii comma delimited text file using VB6. The function used in Access VBA is TransferText. Can anyone tell me how the heck you do the same thing using VB6. I have searched the MSDN help file from one end to the other but I am obviously not putting in the right question.
Any help would be greatly appreciated and would stop me going prematurely grey
How Many Records In A Text File
Hi,
I have created a file with this statment and a user defined type (udtRecord).
Open strSaveFile For Random As #1 Len = Len(udtRecord).
I can store as many records into the file as I want without problems.
What I am unsure of is how to retrieve this data, where to store the data in the program (string array?) and how many records are stored in the text file.
Here is the code
Code:
Open sSaveFile For Random As #2 Len = Len(udtRecord)
With udtRecord
Get #2, ["Unknown if I should place anything here"], iRecord
.FamilyName = DecryptData(.FamilyName, "Mz92#")
.Address = DecryptData(.Address, "Mz92#")
.City = DecryptData(.City, "Mz92#")
.State = DecryptData(.State, "Mz92#")
.PostalCode = DecryptData(.PostalCode, "Mz92#")
.DonDate = DecryptData(.DonDate, "Mz92#")
.CkNum = DecryptData(.CkNum, "Mz92#")
.PaymentMethod = DecryptData(.PaymentMethod, "Mz92#")
.TotalAmount = DecryptData(.TotalAmount, "Mz92#")
.AccountName = DecryptData(.AccountName, "Mz92#")
.Notes = DecryptData(.Notes, "Mz92#")
End With
Close #2
So I need to loop through the textfile and store the data in udtRecord somehow. Thanks for the help
Counting Records On Text File
I've got sort of a problem. The detail is long because I don't know how else to explain it...
A procedure exports an excel file to a tab text file. It then executes the CountRecords function (see below) to verify that the number of records on the text file match those from the original excel file. It seems to be doing it accurately but with one problem. In Excel the original file remains open in case the user needs to refer back to it. While executing the CountRecords code, I'm not entirely sure on why or what it is doing but the line "Cells(l, 5).Formula = .ReadLine" changes the actual original excel file (eventhough upon exporting it, excel changes the filename with the .txt extension, it changes at least what I'm viewing) so that Cells in Column 5 are equal to whatever is in .Readline (which is quite a long string). I do realize that the exported text file is not harmed, however I am weary of any changes that are made to what I see as the original Excel file.
What I'm hoping is that I can change that line to do the same thing for code progression but not affect the view of that text file in Excel. Deleting that line, causes an infinite loop.
Here's my code:
Public Function CountRecords(filepath)
Dim fs As Scripting.FileSystemObject, f As Scripting.TextStream
Dim l As Long
Set fs = New FileSystemObject
Set f = fs.OpenTextFile(filepath, ForReading, False)
With f
l = 0
While Not .AtEndOfStream
l = l + 1
Cells(l, 5).Formula = .ReadLine
Wend
.Close
End With
Set f = Nothing
Set fs = Nothing
CountRecords = l
End Function
Importing Different Records In Same Text File
Ok I have multiple text files and in each file there are different records that need to go into seperate tables. I have no Idea where to start I know its easy and I have some code written up but I am making this more complicated than it needs to be. each record starts with 3 characters such as IDN, CHG, ARR etc... and each of these characters need to be in there own table. The problem is that they are all clumped in the same text file... does anyone know where I can get code that will help me out a bit?
Edited by - MishMIke on 10/20/2004 8:35:29 AM
Import Text File To Records
Hi
I want to use VB-Code in MS Access to import several txt/dat files to records in Access. I have created a table containing 2 fields. One ID field(autonumber) and 1 data field.(Text, 80char)
How can i open a specifikk txt file, and copy each line in the txt file to 1 record in a tabel??
Anyone ??
Regards
Lars E. Nes
How To Count Records/Rows In A Text File
I want to use a For Next loop to process the info in a text file. To do that I think I need an upper limit number. So I want to count the number of records in the file. How can I do that. I thought something like the below would work but it didn't.
Option Explicit
Dim NumRecords As Integer
Private Sub cmdCountRecords_Click()
If Not EOF(1) Then
NumRecords = NumRecords + 1
Else
End If
picOutput.Print "Number of Records = "; NumRecords
End Sub
Private Sub Form_Load()
If Right(App.Path, 1) <> "" Then
Open App.Path & "ModifiedMIM.txt" For Input As #1
Else
Open App.Path & "ModifiedMIM.txt" For Input As #1
End If
End Sub
Count Total # Of Records In A Text File
Modified from original..................
This code gives me count. But when I click on my rc button it doubles my count. So, first click it gives me 12 (and this is correct. i only have 12 records in my file), 2nd click gives me 24, 3rd click gives me 36 and then it breaks.
Code:
Private Sub cmdRC_Click()
Dim TextLine$, Filename$
Dim FileHandle As Integer
Filename$ = "c:Test.txt"
' Test if the file exists
If Len(Dir(Filename$)) = 0 Then
'If Dir(Filename$) = "" Then
Exit Sub
MsgBox "File Not Found", vbCritical
Else
FileHandle = FreeFile ' This is safer than assigning a number
Open Filename$ For Input As #FileHandle
Do While Not EOF(FileHandle) ' Loop until end of file
Line Input #FileHandle, TextLine$ ' Read line into variable
NumRecords = NumRecords + 1
Loop
MsgBox NumRecords
Close #FileHandle
End If
End Sub
How To Count Records/Rows In A Text File
I want to use a For Next loop to process the info in a text file. To do that I think I need an upper limit number. So I want to count the number of records in the file. How can I do that. I thought something like the below would work but it didn't.
Option Explicit
Dim NumRecords As Integer
Private Sub cmdCountRecords_Click()
If Not EOF(1) Then
NumRecords = NumRecords + 1
Else
End If
picOutput.Print "Number of Records = "; NumRecords
End Sub
Private Sub Form_Load()
If Right(App.Path, 1) <> "" Then
Open App.Path & "ModifiedMIM.txt" For Input As #1
Else
Open App.Path & "ModifiedMIM.txt" For Input As #1
End If
End Sub
Reading InStream Records From Text File
Hi all,
I am trying to read in a multily occurring group from within a single
records using the textStream object in VB 6.0.
I am kind of stumped on how to go about reading the records in. I set up a
couple of arrays for the fields that are multiply occurring. Any help on
this would be greatly appreciated.
Here is the code I have so far:
Option Explicit
Public TheStreamObject As COFI_StreamObject
Dim FSys As New FileSystemObject
Private Sub ReadInputRecords()
'On Error GoTo errorhandler
Dim iFileNumIn As Integer
Dim iFileNumOut As Integer
Dim vIStream As Variant
Dim vOStream As Variant
Dim InputFile As Variant
Dim OutputFile As Variant
Dim Instream As TextStream
Dim ClaimArray()
Dim DriverArray()
Dim VehArray()
Dim VioArray()
Dim TLine As Variant
'Make sure the input file exists in destination folder
If FSys.FileExists("T:Program FilesFair IsaacDecision SystemSource
CodeVBScriptsFI_IDS_EXT.txt") = False Then
MsgBox "The Extract File 'FI_IDS_EXT.txt' does not exist.", 48,
"Error Reading File"
End
End If
InputFile = "T:Program FilesFair IsaacDecision SystemSource
CodeVBScriptsFI_IDS_EXT.txt"
Set vIStream = FSys.GetFile("T:Program FilesFair IsaacDecision
SystemSource CodeVBScriptsFI_IDS_EXT.txt")
Set Instream = FSys.OpenTextFile(InputFile, 1, False, TristateFalse)
'Loop through all records in DS input data file
Do While Instream.AtEndOfStream = False 'Not EOF(InputFile)
TLine = Instream.ReadLine
'Populate the input record with data from a single input file record
'Get #iFileNumIn, , iRecord
'TheStreamObject.CreateIStream (3660)
'Set vIStream = TheStreamObject.GetIStream
UD_PolNum = Left$(TLine, 10)
UD_PolEffDt = Mid$(TLine, 11, 8)
UD_PolExpDt = Mid$(TLine, 19, 8)
UD_PolIncDt = Mid$(TLine, 27, 8)
UD_RateState = Mid$(TLine, 35, 2)
UD_PriorPolNum = Mid$(TLine, 37, 10)
UD_VIP = Mid$(TLine, 47, 1)
UD_NumDrvrs = Mid$(TLine, 48, 2)
UD_NumVeh = Mid$(TLine, 50, 2)
UD_NumXclDrvrs = Mid$(TLine, 52, 2)
UD_LatePay = Mid$(TLine, 54, 4)
UD_NumLapse = Mid$(TLine, 58, 2)
UD_NumRemind = Mid$(TLine, 60, 2)
UD_NumAF = Mid$(TLine, 62, 2)
UD_NumNAF = Mid$(TLine, 64, 2)
UD_NumComps = Mid$(TLine, 66, 2)
UD_NumTow = Mid$(TLine, 68, 2)
UD_NumClaims = Mid$(TLine, 69, 2)
ReDim ClaimArray(UD_NumClaims)
For i = 1 To ClaimArray
UD_ClaimNum(i) = Left$(UD_ClaimSeg, 12)
UD_DrvrNum(i) = Left$(UD_ClaimSeg, 12)
UD_LossDt(i) = Left$(UD_ClaimSeg, 12)
UD_RptDt(i) = Left$(UD_ClaimSeg, 12)
UD_ClmStatus(i) = Left$(UD_ClaimSeg, 12)
UD_ClmAmt(i) = Left$(UD_ClaimSeg, 12)
UD_CAT(i) = Left$(UD_ClaimSeg, 12)
UD_Coverage(i) = Left$(UD_ClaimSeg, 12)
UD_LossT01(i) = Left$(UD_ClaimSeg, 13, 2)
UD_LossT02(i) = Left$(UD_ClaimSeg, 15, 2)
UD_LossT03(i) = Left$(UD_ClaimSeg, 17, 2)
UD_LossT04(i) = Left$(UD_ClaimSeg, 19, 2)
UD_LossT05(i) = Left$(UD_ClaimSeg, 21, 2)
UD_LossT06(i) = Left$(UD_ClaimSeg, 23, 2)
UD_LossT07(i) = Left$(UD_ClaimSeg, 25, 2)
UD_LossT09(i) = Left$(UD_ClaimSeg, 27, 2)
UD_Cause(i) = Left$(UD_ClaimSeg, 29, 2)
UD_AdjQR(i) = Left$(UD_ClaimSeg, 31, 1)
UD_Signoff(i) = Left$(UD_ClaimSeg, 32, 3)
UD_GlaccAmt(i) = Left$(UD_ClaimSeg, 35, 9)
EndFor
UD_ClaimNum = Left$(UD_ClaimSeg, 12)
UD_ClaimNum = Left$(UD_ClaimSeg, 12)
WriteDataToIStream TheStreamObject
'Set vOStream = TheRuntimeServer.ProcessRequest(vIStream)
'evaluate the output stream
If Not (vOStream Is Nothing) Then
TheStreamObject.SetCopyOfIStream vOStream
ProcessReturnStr
How To Write Unique Records To A Text File
I just started with VB 6.0 couple of weeks ago. I have this problem of creating a text file based on a raw data from one of our vendors. My input is a text file with duplicate cert#. How can I create a new text file with only the unique cert#?
Thank you very much for all your help.
How To Count Records/Rows In A Text File
I want to use a For Next loop to process the info in a text file. To do that I think I need an upper limit number. So I want to count the number of records in the file. How can I do that. I thought something like the below would work but it didn't.
Code:
Option Explicit
Dim NumRecords As Integer
Private Sub cmdCountRecords_Click()
If Not EOF(1) Then
NumRecords = NumRecords + 1
Else
End If
picOutput.Print "Number of Records = "; NumRecords
End Sub
Private Sub Form_Load()
If Right(App.Path, 1) <> "" Then
Open App.Path & "ModifiedMIM.txt" For Input As #1
Else
Open App.Path & "ModifiedMIM.txt" For Input As #1
End If
End Sub
Edited by - webmanoffesto on 10/6/2003 5:11:26 AM
Transfer Records From Text File To SQL Database
Hey,
I have a text file with 1000 records and 270 fields which i need to transfer it to SQL database. I want a code which can help me doing the same and not DTS.It has no delimiter.
CAn you help me ?
Thanx,
Twinkle
Display Retrieved Records From Text File On Datagrid
I have created the file as:
Code:
Open App.Path & "T1.Txt" For Append As #1
Print #1, s
Close #1
I am using the following code for retrieving values:
Code:
Open App.Path & "T1.Txt" For Input As #1
Do While Not EOF(1)
Line Input #1, s
Loop
Close #1
I want to store the data in a DataGrid. How to do so?
Display Retrieved Records From Text File On Datagrid
I have created the file as:
Code:
Open App.Path & "T1.Txt" For Append As #1
Print #1, s
Close #1
I am using the following code for retrieving values:
Code:
Open App.Path & "T1.Txt" For Input As #1
Do While Not EOF(1)
Line Input #1, s
Loop
Close #1
I want to store the data in a DataGrid. How to do so?
.net Database Connection - Return Records Into A Text File
How do I connect to an acces database using a DSN connection and return the records of the table STUDENTS in VB.NET?
select * from students... etc. I know how to do it in VB6 but it's all new in .NET, does anyone hav a good tutorial on how to do this? etc.
Thanks.
Comparing Records In A Text File And Make A Calculation
i have a text file. I have to compare records and if they match i have to count certain information and put it back in one record. Maybe the i.e. will be more helpfull to understand what i mean:
i.e.:
12345 12345 121245 200 0800
12345 12345 121245 200 0800
34568 12345 121245 200 0400
The two first records are identical. when this is right i have to count some information together and put the result in 1 record.
i.e. counting the last 4 position of record 1 with the last 4 positions of record 2:
12345 12345 121245 200 0400
+
12345 12345 121245 200 0400
=
12345 12345 121245 200 0800
the filecontent must give this result:
12345 12345 121245 200 0800
34568 12345 121245 200 0400
The two first records were identical so some info must be calculated, the result is put in 1 record. If 5 records were identical, only 1 record must be the result, in this record some information of the 5 records must be calculated, ...
if records are not identical, nothing happens with them
sorry for my bad english!!!!
Appending Records From A Text File To A Table. ADO Problem!!
I have a set of records stored as a delimited text file and would like to append them to a table in a database. The idea is that the user will be prompted to open a database and the connection string will be constructed from the choice made. However I always get an error saying that the path is not valid Here's the code.
Private Sub cmdAppend_Click()
Dim connCSV As New ADODB.Connection
Dim rsTest As New ADODB.Recordset
Dim adcomm As New ADODB.Command
Dim path As String
MsgBox "Select database file"
dlgOpen.ShowOpen
path = dlgOpen.filename
MsgBox "path is " & path
If path = "" Then
MsgBox "You have not selected a database"
Exit Sub
Else
connCSV.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
& path & ";Extended Properties='text;HDR=NO;FMT=Delimited'"
etc
etc
I'm afraid I'm a bit in the dark when it comes to connection strings etc. Is it possible to add records from a text file??
Store MS Access Records To Text File Using VB Code
Hi! I would like to transfer/ convert/ store (either of them) the data records of MS Access database into text file, so that it can be uploaded using ASP to the server. Kindly provide me the code for doing this in VB. Thanx in advance to all those without whom this task will not accomplish successfully.
Print Records From Access Database To Text File
Can anybody tell me, how can I fetch the records from my access database to a flat file/text file/word file.At the same time I must be able to design the text file as per my need. Say for example I need to print a bill for a resturant.
Thanks & regards
Reading Text File To Fill In The Records To Access Database
Please help me. I have a project related to brokerage developed in Visual Basic 6.0. I have to read a text file with many columns which are comma seperated. These comma seperated texts have to be kept in the access database. How to do this? Plz help me. It is urgent
How To Convert Ascii Text To Utf8 Text In Vb6
hi everyone.
i use mysql as a database in vb6 . utf8 is used in mysql but ascii is used in vb6 so that i wanna adapt these two ones.
how can i convert ascii to utf8.
i'm really jaded ! help me please.
Best Way To Get The Number Of Records In A File With Millions Records
Hi all,
I have searched the threads looking for a way to get the total number of records in a file in one shot.
It looks like Split function into an array and using UBound is the answer.
However, I have a file that contains millons of records and that may be a problem.
Question: Is there another way of geting the total number of records in a file in one shot? Note that each line is delimited by vbLF.
Thanks in advance for any help.
Ascii To Text
i didnt want to clutter the board and since this question relates i just posted it here. ok well here is where im at. im trying to convert the ascii code back to text. here is how i have it set up.5 text boxes and 2 command boxes the first text box is where the user imputs their message the user presses command button number 1 and that converts text to ascii and posts the ascii in text box 2this is easy no problem now the third text box i call the shifter because it takes what ever number they imput in it and that shifts the ascii up or down that many times also no problem as of now now when the user presses command box number 2 it is suppose to take the shifter and shift the ascii code that many times over which it does and then it is suppose to convert the newly made shifted ascii code back to a new text. example user enters hi converts to ascii 104 05 then user enters +1 for the shift presses convert to text in text box 4 it says 105106 and the new word says "ij" because thats the shift. again my probelm is the changing 105106 to ij im gonna post my whole code so far everything works sept for the bottom
Private Sub Command1_Click()
Dim c
c = ""
If Len(Text1.Text) = 0 Then Exit Sub
For b = 1 To Len(Text1.Text)
c = c & Asc(Mid(Text1.Text, b))
Next
Text2.Text = c
End Sub
Private Sub Command2_Click()
If (Text1.Text) = "" Then
MsgBox "enter your message to be converted then press convert to ascii", , "woops"
Exit Sub
End If
d = ""
c = ""
For b = 1 To Len(Text1.Text)
If Text2.Text = "" Then
MsgBox "first enter a message to be converted then press convert to ascii"
Exit Sub
End If
If Text3.Text = "" Then
MsgBox "enter a number value that you will use to shift the ascii", , "error"
Exit Sub
End If
c = c & Asc(Mid(Text1.Text, b)) + Text3.Text
Next
Text4.Text = c ' everything beyond this point doesnt work
For b = 1 To Chr$(Text4.Text)
d = d & Chr$(Mid(Text4.Text, b))
Next
Text5.Text = d
End Sub
Get Text Above ASCII
I have made an application which retrieves all entries in the Favorites folder. Using Windows 2000 SP4 and Microsoft Internet Explorer 6. One of the entries is:
Венгерский танец
But it is coming out
??????????? ??????
in my application using VB 6. I am trying to put this in a database but text ?????????? ?????? is no good. Any ideas how I can get the text correctly in the access database? Thanks.
Ascii Text
I would need a
control for displaying and editing ascii text like in edit.com or other console apps.
or if not then
code for converting between ascii text and some sort of text with escape characters representing those characters the textbox control doesn't display lik e vbnullchar and vbcrlf, vbtab and so on.
or if not then
a list of the characters that doesn't display in a textbox
Ascii Only In Text Box
Ok, I want to type letters and numbers on the key board and
have the ascii code come up in the text box, instead of text.
This is as close as I can get:
_______________________________________________
Private Sub Text1_KeyPress(KeyAscii As Integer)
Text1.Text = Text1.Text & KeyAscii
End Sub
________________________________________________
The "Text1.Text & KeyAscii" was just to get sequential characters in the text box.
Notice that:
mike becomes, ekim109105107101
Three problems:
1) If I type the word "mike", it comes out backwards(ascii included).
2) I only want ascii not letters and not in reverse order.
3) Things get worse when I try to use the "enter" key.
If you create a simple textbox and cut and past the above code, you will see exactly what I mean.
Thank's for any help!
Text To Ascii
I am new to vb and am looking for a text to ASCII
conversion program. I need to send ASCII characters
out the comm port and I have to send the start and end
transmission characters along with the data
thanks for any help
Converting Text Into Ascii Text
ok, i have just started VB and i have evrything done on m project exept for one thing. Its a prog where u enter text into one text box, and when u press "translate" it comes up ans ascii text in another text box, what would that code be? i have been looking EVERYWHERE and hoping that this is the right place, PLEASE email me: EMAIL ME PLEASE!
Ascii Value Converted To Text
how do you make a Textbox show the value of an Ascii value? ... i want it to display a " (ascii 34)
it checks if it doesn't end with a " after the lost focus and then it places it there but i can't say Text1.text = Text1.text & """
i've had similar problems like this so please don't give me me alternatives
elbow deep within the boarder line. show me that you love me and that we belong together.
ASCII Text Header
Is this header a fixed or variable length header? Meaning:
Will byte 80 always have the value you want?
Take BITPIX for example. If 16 / 16 = 1 Then Len(BITPIX) = 1, but if 16 / 1 = 16 Then Len(BITPIX) = 2
Is NAXIS1 always going to be where you expect it? Or will it vary depending on the information in the header, much like the ID3 frames in an MP3 file?
What Are These Ascii Values As Text?
What is Asc(5)?
What is Asc(12)?
These codes are used as an end of transmission code with the data I am using and I need to know what they actually are.
Text -> ASCII Graphics
Hello,
I was looking around and found some useful progs for text->ascii gfx, i.e. from I to
Code:
---
|
|
---
etc., I was wondering how could I do this in vb, I mean how can I get the build/shape of a letter?
Thanks in advance!
|