Find Jobs
Hire Freelancers

Moving given line in a txt file to new fixed line in same file.

$30-5000 USD

完了済み
投稿日: 21年以上前

$30-5000 USD

完了時にお支払い
Hi all I have a small project, that includes reading ASCII txt files with invoice information, the files contain all the information needed, but its NOT consequent on each side. The file is used after reading as an input to a access code who then generates the invoices thru a report generator. When I have inconsequent output from the txt files the generator will not print correct information on each page,(the pagebreak in the generator failes regards to fixed pagebreak)and the information printed is rubbish. I need a code to search for a given word or caracter and then put that line to a fixed line, and push all the txt below this line down including the search txt. ## Deliverables Here is the code that i am using. Function Prep() As Integer Dim lngInFile As Long Dim lngOutFile As Long Dim strIn As String Dim strOut As String Dim lngCounter As Long Dim intPos As Integer Dim strReplace As String Dim dooloop As Long Dim PageBreak As Boolean 'True/False variable to tell if its the Dim GoToLine As Integer Dim LineCount As Integer 'Counter for current line number lngInFile = FreeFile Open "D:\ERGO\FA\BIN\[login to view URL]" For Input As lngInFile lngOutFile = FreeFile Open "D:\ERGO\FA\BIN\[login to view URL]" For Output As lngOutFile While Not EOF(lngInFile) Line Input #lngInFile, strIn intPos = InStr(strIn, " LISTE") While intPos > 0 lngCounter = lngCounter + 1 strReplace = (" LISTE2") & vbCrLf 'do something... strIn = Replace(strIn, " LISTE1", strReplace, , 1) intPos = InStr(strIn, " LISTE1") Wend intPos = InStr(strIn, "Totalt ") While intPos > 0 lngCounter = lngCounter + 1 strReplace = "Totalt: " 'do something... strIn = Replace(strIn, "Totalt ", strReplace, , 1) intPos = InStr(strIn, "Totalt ") strIn = vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & _ vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & _ vbCrLf & vbCrLf & vbCrLf & vbCrLf & strIn Wend intPos = InStr(strIn, "Side: 2") While intPos > 0 lngCounter = lngCounter + 1 strReplace = "Side : 2" 'do something... strIn = Replace(strIn, "Side: 2", strReplace, , 1) intPos = InStr(strIn, "Side: 2") strIn = vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & _ vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf & _ vbCrLf & vbCrLf & vbCrLf & vbCrLf & strIn Wend intPos = InStr(strIn, " ----------------") While intPos > 0 lngCounter = lngCounter + 1 strReplace = " " 'do something... strIn = Replace(strIn, " ----------------", strReplace, , 1) intPos = InStr(strIn, " ----------------") Wend intPos = InStr(strIn, " 8398 10 03791") While intPos > 0 lngCounter = lngCounter + 1 strReplace = (" 8398 10 03791") & vbCrLf & (Chr(12)) 'do something... strIn = Replace(strIn, " 8398 10 03791", strReplace, , 1) intPos = InStr(strIn, " 8398 10 03791") Wend intPos = InStr(strIn, "?") While intPos > 0 lngCounter = lngCounter + 1 strReplace = "?" 'do something... strIn = Replace(strIn, "?", strReplace, , 1) intPos = InStr(strIn, "?") Wend intPos = InStr(strIn, "?") While intPos > 0 lngCounter = lngCounter + 1 strReplace = "?" 'do something... strIn = Replace(strIn, "?", strReplace, , 1) intPos = InStr(strIn, "?") Wend intPos = InStr(strIn, "›") While intPos > 0 lngCounter = lngCounter + 1 strReplace = "?" 'do something... strIn = Replace(strIn, "›", strReplace, , 1) intPos = InStr(strIn, "›") Wend intPos = InStr(strIn, "†") While intPos > 0 lngCounter = lngCounte ## Platform Windows 2000, Access2000, VB6
プロジェクト ID: 2883364

プロジェクトについて

4個の提案
リモートプロジェクト
アクティブ 21年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$21.25 USD 14日以内
5.0 (10 レビュー)
2.6
2.6
この仕事に4人のフリーランサーが、平均$34 USDで入札しています
ユーザーアバター
See private message.
$12.75 USD 14日以内
4.9 (335 レビュー)
7.7
7.7
ユーザーアバター
See private message.
$17 USD 14日以内
5.0 (39 レビュー)
3.9
3.9
ユーザーアバター
See private message.
$85 USD 14日以内
4.5 (1 レビュー)
2.6
2.6

クライアントについて

NORWAYのフラグ
Norway
5.0
1
メンバー登録日:1月 17, 2003

クライアント確認

このクライアントからの他の仕事

VB code for printing even pages in Access
$30-5000 USD
ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。