Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-07

oCRT / ..edit question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Hantsch

Hello, everybody!

Because Ken Wright seems to be either too busy or in vaction, he does not answer my questions. -- Hope that somebody else uses oCRT too and can give me some hints.

My problem is with nEdit(), the editing functions of oCRT, and with the picture strings which I can pass to it.
I experience that I can edit any string if a empty picture string is used. (-> This DOES work.)

When using '*#' as picture string, it worked for a longer while, then, suddenly, without any change in this part of the program, I could suddenly not input anything. I changed the picture string to '', and I could enter data...

I also tried to force uppercase letters, as mentioned in the pxpic.txt file, by passing '*&' as picture. Should give all input in upper case, but GIVES NOTHING, I cannot input anything.

Finally, I tried to find an picture string fpor entering telephone numbers which have the following format: +43-1111-2222222-3333 +43 .... Country code. 1..2 digits (USA is +1, i.e.) 1111 ... This is the area code. can vary from 1..4 digits 2222 ... This is the phone number. can vary from 4..7 digits 3333 ... This is an OPTIONAL PBX-extension. is not always required. Whatever I tried, it results in a dead input, no key is accepted.

If somebody could give me some help, I will be very happy. I am currently writing a new invoicing program for myself, and I stuck completely because of this mysterious effects.

ps.: I MUST USE oCRT because I want to be able to run my application from nearely every terminal which is available, including VTxxx, and be- cause I want to do textmode-windowing (which works great with oCRT).

Please, leave me your hints!

Ing. Rainer Hantsch

\\|// Ing. Rainer HANTSCH - Hardware + Software (o o) Your Partner - Your Supplier - Your Friend! --oOOo-(_)-oOOo-------------------------------------------------- Ing. Rainer HANTSCH | e-Mail:
Khunngasse 21/20 | www : http://www.hantsch.co.at A-1030 Vienna | Tel. : ++43 - 1 - 7988538 0 ---------------------| Fax : ++43 - 1 - 7988538 18 ** AUSTRIA ** | Mobile: ++43 - 663 - 9194382 -----------------------------------------------------------------

Reply by email

Unknown author
to Rainer Hantsch

Date sent: Wed, 18 Jul 2001 06:58:17 +0200 (CEST) From: Rainer Hantsch
To: Free Pascal Group
Subject: [fpc-pascal]oCRT / ..edit question Send reply to:

Hi!

.
.

Finally, I tried to find an picture string fpor entering telephone numbers which have the following format: +43-1111-2222222-3333 +43 .... Country code. 1..2 digits (USA is +1, i.e.) 1111 ... This is the

.
.

I can't help you very much with your main problem, but a little correction seem to be appropriate - country code commonly has 3 digits for small countries (e.g. Czech Republic has +420, but there are many other examples). As a little particularity - I've just found in Yellow Pages, that some little (standalone) island countries in Caribic have four digits, but these are shaped as +1xxx, i.e. they form a subset within the U.S. country code (although those countries are distinct entities politically and geographically), so it's a somewhat special case.

Tomas

Reply by email