home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!wupost!monsanto.com!skcla.monsanto.com!jjfink
- From: jjfink@skcla.monsanto.com
- Subject: Re: Paradox questions
- Message-ID: <1993Jan22.091145.1@skcla.monsanto.com>
- Lines: 48
- Sender: news@tin.monsanto.com (USENET News System)
- Organization: Searle, Skokie, IL
- References: <2280@blue.cis.pitt.edu>
- Date: Fri, 22 Jan 1993 09:11:45 GMT
-
- In article <2280@blue.cis.pitt.edu>, field@.cs.pitt.edu.cs.pitt.edu (Brian Field) writes:
- > 1) I'm writing a script that changes the field types of several fields in a
- > table. Since I couldn't figure out how to do this directly from the
- > manual, I recorded a script where I manually changed the file types,
- > and checked out the script. The script looks something like this:
- >
- > {Modify} {Restructure} {table_name} Down Down Down .....
- > Right Right Backspace Backspace "A8"
- >
- > Now, this works ok, but doesn't allow me to change this field's
- > relative position in the table, without going back and changing the
- > script.
- >
- > Is there a way to do something instead, like:
- >
- > {Modify} {Restructure} {table_name} {field_name} {student name}
- > {field_type} "A40"
-
- Unfortunately, it's not quite so simple, but you can make things a little more
- flexible.
-
- Putting the line
-
- MOVETO [Field Name] LOCATE "Student Name"
-
- will move you to the right line in the restructure.
-
- > 2) How does one access the contents of a field name that have been passed
- > as an arguement to a procedure? Do I need to use EXECUTE to do this,
- > or is there an alternative?
-
- PROC GetFieldContents( theFieldName )
- MOVETO FIELD theFieldName
- RETURN []
- ENDPROC
-
- Remember to use MOVETO FIELD. If you leave FIELD out, it tries to move to the
- image with the same name. If your image is more than 11 characters long, or
- otherwise not a legal file specification, Paradox 3.5 will crash (known bug).
- I haven't tried to duplicate this in 4.0.
-
- Joel
- --
- jjfink@skcla.monsanto.com
- ------------------------------------------------------------------------------
- "I want peace on earth, and goodwill towards man."
- "We don't do that kind of thing, we're the United States Government!"
- -- from _Sneakers_
-