Sorry Peter
I know it is the wrong answer but you really have no choose except re-write
to get a reasonable windows app.
My advice is, if you want a console app then stick with your 16-bit
executable.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Pete
> 1) If I was to program in CONSOLE mode, would I have access to graphics
> commands like LINE or RECTANGLE (or the Delphi equivalents) ?
No, but you can manually open a window and draw on it.
> 2) In Standard mode, do you need to keep strictly to an OBJECT style ?
> It would make it easier if I
Hi,
I'm new to this list.
Starting about 12 years ago, I have what is now a very large VGA Dos
commercial application created using Turbo Pascal.
I have finally decided to bite a considerably well stocked bullet and
have a look at converting it to Windows using Delphi 6, which I am in
the process
You could use a temporary table?
(Quotes corrected)
select @sql='select au_lname into #temp from authors where
au_id=''172-32-1176'''
exec (@sql)
select @result=au_lName from #temp
Paul Ritchie
Radio Computing Services.
> -Original Message-
> From: Jim Zheng [mailto:[EMAIL PROTECTED]]
You could use a temporary table?
select @sql='select au_lname into #temp from authors where
au_id='172-32-1176'
exec (@sql)
select @result=au_lName from #temp
Paul Ritchie
Radio Computing Services.
> -Original Message-
> From: Jim Zheng [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 2
Hi
all.
I am capturing an
HTTP post, but the data in the field is a bit weired.
I.e. on the HTML
page the text i the text box is "y:\delphi\projects\blah\blah" BUTwhen I get teh
data in my program its tunred to "yACdelphiCprojectsCblahCblah"
!!
How can I deal with
this ? Do I need to
Jim
Bit cumbersome but
declare @result varchar(255)
declare @sql varchar(255)
select @sql='create proc temp_proc @@LName VARCHAR(255) OUTPUT as select
@@LName = au_lname from authors where au_id="172-32-1176"'
exec(@SQL)
exec temp_proc @result OUTPUT
select @result
drop proc temp_proc
HTH
Neven
Ross
My comments were more on the 'Compiler' side ie no type checking (though
with
Blockread you picked on one of the pascal std procs that dosn't type
check)
Things i don't miss about Dataflex
1/ Lack of type and syntax checking
2/ No case statements
3/ No record structures
4/ meaningless 'c
Hang on...
How can I assign the return value to a variable?
i.e. we can say
declare @result varchar(255)
select @result=au_lname from authors where au_id="172-32-1176"
but we can't say
declare @result varchar(255)
declare @sql varchar(255)
select @sql='select au_lname from authors where au_id
Dataflex...
Yes I did some work in Dataflex version 1.something when I left university.
I was trying to remember if it is like Pascal but I think my mind has
purposely blanked out that horrible experience...
Steve
Neven MacEwan wrote:
> > Previously using Dataflex for DOS (for the last 13
>
Neven MacEwan wrote:
> > Previously using Dataflex for DOS (for the last 13
> > years) which is similar to Pascal.
>
> In what way? As a Dataflex programmer (of 15 years experiance)
> I can cartegorically state that the Dataflex Macro Assembler is
> only like Pascal in the way that everything
Thanks all for the help. I think Max may be right, and right about the
brain strain. It doesn't sound logical to me. Most of the standard Delphi
procedures can use a Delphi string parameter but not this one!
Thanks again, Ross.
Max Nilson wrote:
>
> Ross Levis asks:
>
> > The on-line help
try
BlockWrite(outputfile, Pointer(Stringvar)^, Length(Stringvar));
JED
>Stringvar := 'Hello World'; {defined as string}
>Blockwrite(outputfile,Stringvar,1); {outputfile has a record length of
2448}
**
This email and any fi
Ross
Welcome to the Wonderful World of Delphi (and DUG)
Re
> Previously using Dataflex for DOS (for the last 13
> years) which is similar to Pascal.
In what way? As a Dataflex programmer (of 15 years experiance)
I can cartegorically state that the Dataflex Macro Assembler is
only like Pasca
Ross Levis asks:
> The on-line help suggests the buffer parameter can be any variable type
> so why doesn't it work?
BlockWrite is defined as follows:
procedure BlockWrite(var f: File; var Buf; Count: Integer
[; var AmtTransferred: Integer]);
and the key things is the var Buf; parameter.
> On second thought, I don't think this will work. If it needed a PChar
> rather than a string, the first character written would be
> binary followed
> by the string. But this didn't happen. Back to the drawing board.
Don't forget StringVar[1] - I mentioned this first because in my experienc
The Example in D5 uses an array of Char instead of String - my guess it will
only work with a pointer to the character array (having not tried it !!!)
Paste from D5 Help:
var
FromF, ToF: file;
NumRead, NumWritten: Integer;
Buf: array[1..2048] of Char;
begin
if OpenDialog1.Execute then
> Try using StringVar[1] or PChar(StringVar)?
On second thought, I don't think this will work. If it needed a PChar
rather than a string, the first character written would be binary followed
by the string. But this didn't happen. Back to the drawing board.
Ross.
--
> Try using StringVar[1] or PChar(StringVar)?
I was wondering if Blockwrite needed a null terminated string pointer. It
doesn't say so on the help but I will try it tonight when I get home from
work. I don't have a manual because I'm using the free Standard version
that came with the June "PC W
Try using StringVar[1] or PChar(StringVar)?
Luke Pascoe Delphi Programmer
enSynergy Consulting LTD
[EMAIL PROTECTED] +64-9-3551593 fax +64-9-3551590
Level 4, 10-12 Federal St, Auckland, New
Hello all.
I'm self-teaching myself Delphi 5. I had Pascal experience almost 20 years
ago at Uni and it's all coming back to me slowly. This is my first Windows
development system. Previously using Dataflex for DOS (for the last 13
years) which is similar to Pascal.
Anyway, I'm writing a rand
21 matches
Mail list logo