Recent

Recent Posts

Pages: [1] 2 3 ... 10
1
What does the .code part do?
2
Databases / insert select from - within the SAME table
« Last post by Nicole on Today at 11:39:34 am »
I use Firebird 4 and want to do this:
- copy one existing dataset, no matter if with * or listed items
- make my generator make an new id within the same table
- copy the values into it

I tried it all, with all brackets settings.
The error message jumps just before the bracket and claims "invalid token".

How to make it work?
If possible I prefer select *, but there was a bug with it in a previous Firebird version (2.5.)

This version below does not work.
The idea was: select everything except the id = id_einkommen and make Firebird generate a new id with inserting the values of the old one, e.g. 10.

Code: MySQL  [Select][+][-]
  1. INSERT INTO TBEINKOMMEN
  2. ((
  3. SELECT a.TYP, a.ISIN, a.WKZ, a.BEZEICHNUNG, a.EINTRAGSDATUM,
  4.     a.EMITTENT, a.EMISSIONSDATUM, a.AGIO, a.RENDITE_P_A, a.EMISSIONSPREIS,
  5.     a.LAND, a.BRANCHE, a.EMISSIONSVOLUMEN, a.ZINSBERECHNUNG, a.BESONDERHEITEN,
  6.     a.KUPONTEXT, a.NOMINALZINSSATZ, a.MODIFIED_DURATION, a.RATING, a.WAEHRUNG,
  7.     a.ZUHANDELNAN, a.MATURITY, a.KLEINSTEEINHEIT, a.ERSTERKUPON, a.LETZTERKUPON,
  8.     a.EMISSIONSKURS_IN_PROZENT, a.TILGUNGSKURS_IN_PROZENT,
  9.     a.KAUFKURS_IN_PROZENT, a.STEUER_IN_PROZENT, a.STEUER_ALS_BETRAG,
  10.     a.KUPONS_IM_JAHR, a.KUPON_ALS_BETRAG, a.DURATION, a.BEZEICHNUNG_LANG,
  11.     a.BETRAG_INVESTIERT, a.KURS, a.SPESEN, a.DEPOT, a.MARKETMAKER,
  12.     a.KAUFPREIS_SUMME )
  13.     FROM TBEINKOMMEN a
  14.     a.ID_EINKOMMEN = '10');





3
Debugger / Re: FpDebug breakpoint on "begin"
« Last post by YiannisKam on Today at 11:30:25 am »
Sorry for the off-topic 440bx, but may I ask which font family you use in your code editor?  They look very cool.
4
Databases / Re: Database standards OR Am I doing this right?
« Last post by TRon on Today at 11:28:02 am »
That poat was only a sidenote to TRon's post...
.. and one that I completely missed. My apologies.

Yes, it is a good addition and I am aware that you can do it that way albeit better not in the context of TS's post (indeed better let the database engine/API take care of that for us).
5
General / Re: Access violation when opening Tools/Options
« Last post by TRon on Today at 11:24:35 am »
To find out was was causing I did enable the extra logging and ran lazarus from bash, so I was ale to tell that it was due to jcf settings.
Glad to hear that you got that figured out.

Quote
Monday I will try again once I get to work, but is good that nobody else gets same error at least.
It does make me wonder if the IDE should (be allowed to) crash when something is perhaps configured incorrectly or has become incompatible (*).

fwiw: by default the Lazarus configuration directory is installed 'globally' (usually in your user directory) and removing the package alone will not take care of these user configurations. That should be done manually. It is reason for a lot of people to use the pcp option to point the user configuration to a directory of your choice where it is possible to have multiple configuration directories for different versions of Lazarus (even when multiple versions of Lazarus are installed at the same time)

See also here about primary configuration path and here about multiple Lazarus (take special note of the lazarus.cfg file options).

(*) edit: ah I see I crossed Martin_fr's reaction where he suggest to upload the offending configuration files, most probably in an attempt to try prevent such crashes (?)
6
General / Re: Access violation when opening Tools/Options
« Last post by Martin_fr on Today at 11:21:28 am »
First backup all of your config files.

Then when you find the config file that causes the crash, and it has no personal data in it, please upload it. Then we can have a look to make sure such broken config give a proper error prompt, rather than a crash.
7
Databases / Re: Database standards OR Am I doing this right?
« Last post by cdbc on Today at 11:17:40 am »
Hi
@MarkMLl: I agree, the best solution comes from the database itself. At least I assume that, they've put a lot more work and knowhow into the database-code, than I'll ever do with my client-code...
That poat was only a sidenote to TRon's post...
Regards Benny
8
General / Re: How to: create DLL file for Windows 10 64-Bit Pro
« Last post by paule32 on Today at 11:17:12 am »
Hello,
it is possible to change the creation of Assembly by FPC through some parameters or options ?

I have the following code:

Code: Pascal  [Select][+][-]
  1. s1 := QString.Create;

which results into assembly code:

Code: ASM  [Select][+][-]
  1. mov     ebx,edx
  2. mov     edx,1
  3. lea     rcx,[VMT_$SYSTEM_$$_QSTRING]
  4. call    SYSTEM$_$QSTRING_$__$$_CREATE$$QSTRING

my intention is, to get the replacement of it like:

Code: ASM  [Select][+][-]
  1. mov     ebx,edx
  2. mov     edx,0
  3. lea     rcx,[VMT_$SYSTEM_$$_QSTRING]
  4. call    SYSTEM$_$QSTRING_$__$$_CREATE$$QSTRING

How can I do this ?

I know, that there are the keywords asm ... end;
But I would let FPC do this for me from pascal code.
9
Hey Y'All,

This is the repo for the logo proposals: https://github.com/gcarreno/UnofficialObjectPascalLogos

@Handoko:
  May I please ask you to split that single file into 3 different ones?
  Now that we have a repo, please drop a PR with the image split and please update the README.md
  And BTW, thank you ever so much for your contribution!!!

Cheers,
Gus
10
Please create an issue.
Pages: [1] 2 3 ... 10

TinyPortal © 2005-2018