Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 12 APR 1999 01:48:08PM Gene Sorbo wrote:

Hi all,

I'm having an unusual problem trying to delete an edittable row using Send_Message.

Here's the code, which is being executed from a stored procedure on the forms write event:

LOCATE '8' IN DEDUCTION_CODES USING @FM SETTING DEL.POS THEN

Send_message(CONTROLNAME,"DELETE",DEL.POS)

END

The problem is, if DEL.POS is 1 (row 1 in the edittable), I get a Windows error message "oinsight - an error has occurred in your

program " then asks me to close or ignore. If I choose ignore, the row DELETE actually occurs o.k. If the row to be deleted is at any other row but row #1, the row delete works fine and no error message comes up.

Any thoughts? This one is driving me batty.

OI 3.61 on Window 95, single user - no GFE's on any files.

TIA

Gene


At 12 APR 1999 03:25PM Oystein Reigem wrote:

Gene,

Can really one use periods in variable names (DEL.POS)? Try without.

- Oystein -


At 12 APR 1999 04:29PM Gene Sorbo wrote:

Oystein,

I have been using periods in variable names without any problems so far. If this is a no-no, I need to start changing them now! (Bonus question… :), do you know of any OI utility similar to AREV's FINDSTRING that will identify all occurrences of a string of text in a OI file? Scanrepos does not appear to have the same kind of functionality…).

In a last attempt to 'fix' this, I deleted the edittable from the form, then added it back.

Problem gone.

Thanks for your help.

Gene


At 13 APR 1999 04:22AM Oystein Reigem wrote:

Gene,

I have been using periods in variable names without any problems so far. If this is a no-no, I need to start changing them now!

Don't really know. Never used dots myself and cannot remember having seen variable names with dots in them. Or perhaps in RBASIC code (Arev), but not in BASIC+ (OI). I have hard time remembering back even a few years (when I used Arev).

Tried to check the OI online docs, but cannot find anything on legal characters in variable names. E.g function names are mentioned but not variable names as far as I can see.

If dots are allowed in variable names in Arev, and people regularly use them, they are probably allowed in OI too. Or else I'd noticed postings warning people to avoid them. There's been several posting warning people off using dots in table and field names. That's allowed in Arev but not always healthy in OI.

(Bonus question… :), do you know of any OI utility similar to AREV's FINDSTRING that will identify all occurrences of a string of text in a OI file? Scanrepos does not appear to have the same kind of functionality…).

I don't know FINDSTRING. But I think there is a way to achieve this in OI, something fairly simple. I seem to remember reading a posting some time. I might even have it somewhere in my vast electronic collection of possible useful stuff, but I don't know how to find it! Ironic or what?

But I'm certain somebody else can and will help you with this.

Btw - is it any substring you want to find, or is it any word?

And is it data tables or system tables you want to search?

I often have the need to search my own source code. What I have done is to write a simple export utility that writes all source to text files, and then I open and search the text files with a word processor. The utility writes all rows in SYSPROCS to one file, all rows in SYSREPOSEVENTS to a second file, and all the symbolic formulas of all the data dictionaries to a third one.

In a last attempt to 'fix' this, I deleted the edittable from the form, then added it back. Problem gone.

If only everything were as easy as that! "I had this terrible sprained ankle, but I just deleted the leg and added it back and now I'm ready to run again!"

- Oystein -


At 13 APR 1999 03:34PM Cameron Revelation wrote:

Gene,

You cannot add and remove columns from an edit table that has max rows set to -1.

Cameron Purdy

Revelation Software


At 13 APR 1999 11:42PM Don Bakke wrote:

Cameron,

AFAIK he's deleting rows, not columns.

[email protected]

SRP Computer Solutions


At 15 APR 1999 12:24AM Barry Stevens wrote:

There is a form exe called FINDINFILES, bring it up in the Aplication Manager View and shift double click to run.

Barry


At 15 APR 1999 04:06AM Oystein Reigem wrote:

Barry,

There is a form exe called FINDINFILES

Not in my 3.61. Later version necessary, or did you get it from somewhere else?

- Oystein -


At 15 APR 1999 07:32AM Cameron Revelation wrote:

Hi Oystein,

FINDINFILES is one of my earlier creations that was available on CompuServe.

Title   : Find In Files utility for OpenInsight
Keywords: SEARCH FIND FILES NATIVE TABLES OI UTILITY

(Forms and source included)

This utility searches OI files for a specified string and sports a

record viewer that supports multiple formats (binary, plain text, and text

with most standard delimiters).

Note: Intended for 800x600 resolution or higher.

* cp 02/26/96

Cameron Purdy

Revelation Software


At 15 APR 1999 08:34AM Oystein Reigem wrote:

Cameron,

A very satisfying utility indeed! Thanks a lot!!

- Oystein -


At 15 APR 1999 11:36AM Cameron Revelation wrote:

Oystein,

Does that have an "Edit", "Find" menu item? If not, I have a newer version.

Cameron Purdy

Revelation Software


At 15 APR 1999 12:25PM Steve C. wrote:

Cameron:

In the zip file… after attaching the *_TEMP files, do I need

to copy all the records in all the *_TEMP files into the normal

SYS… files to run the form ??? In other words, after attaching the

zip subdirectory how do I get your App to run?

Steve C.


At 15 APR 1999 01:36PM Cameron Revelation wrote:

Steve,

That is a Repository Checkout. Check-out, copy from. Specify the dir containing the TEMP files.

Cameron Purdy

Revelation Software


At 15 APR 1999 02:28PM Steve C. wrote:

Cameron,

Really nice. Note that it does not have an "Edit", "Find" menu item?

If you could provide the newer one in the WORKS download section

it would be great…

By the way… I had tried a check-out but was in my APP, not SYSPROG.

Thanks again..

Steve C.


At 16 APR 1999 09:05AM Barry Stevens wrote:

Cam

That was the old version of FindInFiles.

Barry


At 16 APR 1999 09:37AM Oystein Reigem wrote:

I quite liked it.

Does the newer version find more occurrences? :-)

- Oystein -


At 16 APR 1999 01:41PM Cameron Revelation wrote:

Oystein,

Does the newer version find more occurrences?

The new one is so good, it finds everything.

Cameron Purdy

Revelation Software


At 16 APR 1999 02:03PM Steve C. wrote:

Buttttttttt Cameron:

Where is this fantastic new FINDINFILES????

Thanks ;-)

Steve C.

P.S. Have you had a chance to think about how or if a

bitmap background can be used with a groupbox?


At 20 APR 1999 11:38AM [email protected] wrote:

Really? I seem to have lost my mind somewhere back…

[email protected]

ourworld.compuserve.com_homepages_garygnu_graphics_laughing-show-gnu.jpg

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/e7298501106053ed852567510061ca92.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1