473,385 Members | 1,734 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,385 software developers and data experts.

Using "Import Text" Access feature in C#

VMI
In Access, when a user's going to import a fixed-width format ascii file, a
window in the "Import Text Wizard" lets the user "mark" where in a string
one field will begin and end (with the vertical lines that can be moved with
the mouse). Can this (or something similar) be implemented in order for the
user to graphically choose which part of the string will be, for example, be
displayed in a MessageBox?
So for example, my control would display the string "Hello World" and the
user can add add and then move a vertical line through the control and place
it after the second "l". When an button click is raised, the messagebox will
display "Hell".

Thanks.
Nov 16 '05 #1
2 3709
VMI
My application is a windows applications. would javascript still work? also,
since the site is so full of information, where can I start looking for
something like this?

Thanks.

"Ryan Riddell" <Ry*********@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
You could do something like that using javascript.

check out http://www.w3schools.com

"VMI" wrote:
In Access, when a user's going to import a fixed-width format ascii file, a window in the "Import Text Wizard" lets the user "mark" where in a string one field will begin and end (with the vertical lines that can be moved with the mouse). Can this (or something similar) be implemented in order for the user to graphically choose which part of the string will be, for example, be displayed in a MessageBox?
So for example, my control would display the string "Hello World" and the user can add add and then move a vertical line through the control and place it after the second "l". When an button click is raised, the messagebox will display "Hell".

Thanks.

Nov 16 '05 #2
Sorry, didn't realize you were doing a windows application. I can't think of
a real good way to do this off hand. One way would be to display the data in
a box. Then have the user move to the position they want and enter some
special identifier like[*]. Then use string.indexOf("[*]") to find the
delimiter. The trick here is they could modify the text. If this is a
concern, then once you find the position of the delimiter, note the position
and delete the delimiter. Then compare the original text with the 'new'
text. If they are different, yell at the user.

Another idea (probably better) would be to put data in a readonly box. Then
have arrows pointing left and right to allow them to move the delimiter. If
you do this, be nice to the user and have 2 left and 2 right arrows. The
second arrow is a 'fast' [forward || reverse] which moves it 10 or so
characters at a time.

Good luck with this, let me know what you end up doing.

"VMI" wrote:
My application is a windows applications. would javascript still work? also,
since the site is so full of information, where can I start looking for
something like this?

Thanks.

"Ryan Riddell" <Ry*********@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
You could do something like that using javascript.

check out http://www.w3schools.com

"VMI" wrote:
In Access, when a user's going to import a fixed-width format ascii file, a window in the "Import Text Wizard" lets the user "mark" where in a string one field will begin and end (with the vertical lines that can be moved with the mouse). Can this (or something similar) be implemented in order for the user to graphically choose which part of the string will be, for example, be displayed in a MessageBox?
So for example, my control would display the string "Hello World" and the user can add add and then move a vertical line through the control and place it after the second "l". When an button click is raised, the messagebox will display "Hell".

Thanks.


Nov 16 '05 #3

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

Similar topics

0
by: Vio | last post by:
Hi, I've been trying to embed (statically) wxPy alongside an embedded py interpreter on a linux/gtk box. At one point, for some reason misc.o linking reported "multiple definitions of...
2
by: Torsten Mohr | last post by:
Hi, i tried to find the file and line in the C sources of python where the command "import" is implemented. Can anybody give me some hint on this? Thanks, Torsten.
2
by: Tian | last post by:
I am writing a python program which needs to support some plug-ins. I have an XML file storing some dynamic structures. XML file records some class names whose instance needs to be created in the...
3
by: Mudcat | last post by:
I have a directory structure that contains different modules that run depending on what the user selects. They are identical in name and structure, but what varies is the content of the functions....
2
by: samadams_2006 | last post by:
What "imports" command (ie: Imports System.Text ) do I need to add in order to get access to stdole in vb.net ?
1
by: Capn Stoobie | last post by:
I have a database that I regularly import data into from a text file. The text file is produced by payroll software, and it is always the same format. Most of the time my acImportDelim command...
1
by: Patrick A | last post by:
All, Can anyone point me towards the easiest technology or technique for: Importing a table with the same name (Contacts) from 500 different databases, all with different names. (I am in...
1
by: Malcolm Greene | last post by:
Is there any consensus on what "from __future__ import" options developers should be using in their Python 2.5.2 applications? Is there a consolidated list of "from __future__ import" options to...
3
by: J. Cliff Dyer | last post by:
On Thu, 2008-05-08 at 12:00 -0700, Eric Hanchrow wrote: It's the same reason as this: 5 5 6 5 Python "variables" are just names that point at objects. When you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.