Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Databases
»
Load a Dbf Memo field from one table to another table Dbf Memo field
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Instalation Error...
by
TRon
[
Today
at 10:19:44 pm]
DuckHunter Game
by
Lulu
[
Today
at 10:05:51 pm]
How to download/compile l...
by
Theo11
[
Today
at 09:33:30 pm]
No fpc found on a fresh i...
by
cdbc
[
Today
at 09:32:18 pm]
IDE tabs and spaces, auto...
by
Martin_fr
[
Today
at 09:17:07 pm]
NIL vs. Assign: when to u...
by
PascalDragon
[
Today
at 09:06:49 pm]
(Solved) Illegal paramete...
by
PascalDragon
[
Today
at 09:03:12 pm]
MOVED: Trunk 3.3.1 access...
by
PascalDragon
[
Today
at 08:58:18 pm]
Fast Fourier Transform (F...
by
tetrastes
[
Today
at 08:51:53 pm]
Velthuis.Console.pas - Wo...
by
dculp
[
Today
at 08:02:02 pm]
Test Regular Expressions
by
Gustavo 'Gus' Carreno
[
Today
at 07:42:00 pm]
Drive a tank around the s...
by
TBMan
[
Today
at 06:22:22 pm]
"database not open" - IBX...
by
rvk
[
Today
at 05:55:32 pm]
GTK3 still alpha
by
han
[
Today
at 05:46:27 pm]
Rest API chunk file downl...
by
daniel_sap
[
Today
at 04:47:21 pm]
mxMarkEdit as reference m...
by
maxnd
[
Today
at 04:38:51 pm]
[Solved] How to get and u...
by
Hansaplast
[
Today
at 04:19:31 pm]
lazarus-darwin-aarch64-3....
by
Jon Trepte
[
Today
at 03:27:39 pm]
TlargeIntField set filt...
by
BrunoK
[
Today
at 02:48:13 pm]
I'm wondering, what kind ...
by
Marc
[
Today
at 02:21:46 pm]
Trunk 3.3.1 access violat...
by
Marc
[
Today
at 02:16:02 pm]
TpageControl at design ti...
by
Paolo
[
Today
at 01:28:25 pm]
Tcsvdataset issue
by
wp
[
Today
at 01:04:24 pm]
TStringGrid AlternateC...
by
wp
[
Today
at 12:57:04 pm]
About TFPExpressionParser
by
Zvoni
[
Today
at 10:29:58 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Load a Dbf Memo field from one table to another table Dbf Memo field (Read 1675 times)
1HuntnMan
Sr. Member
Posts: 323
From Delphi 7 to Lazarus
Load a Dbf Memo field from one table to another table Dbf Memo field
«
on:
May 23, 2024, 11:27:04 pm »
Usually I load data from one table field to another table field that are either string or integer fields, i.e.
Code: Pascal
[Select]
[+]
[-]
DbfAppmts
.
FieldByName
(
'CNTKFNAME'
)
.
AsString
:
=
DbfCntks
.
FieldByName
(
'CNTKFNAME'
)
.
AsString
;
DbfAppmts
.
FieldByName
(
'CNTKMI'
)
.
AsString
:
=
DbfCntks
.
FieldByName
(
'CNTKMI'
)
.
AsString
;
but have a need to xfer a Memo field TravelDirections from one table to another.
Logged
paweld
Hero Member
Posts: 1330
Re: Load a Dbf Memo field from one table to another table Dbf Memo field
«
Reply #1 on:
May 24, 2024, 12:19:08 am »
Code: Pascal
[Select]
[+]
[-]
DbfAppmts
.
FieldByName
(
'MemoFNAME'
)
.
Value
:
=
DbfCntks
.
FieldByName
(
'MemoFNAME'
)
.
Value
;
Logged
Best regards / Pozdrawiam
paweld
egsuh
Hero Member
Posts: 1563
Re: Load a Dbf Memo field from one table to another table Dbf Memo field
«
Reply #2 on:
May 24, 2024, 04:39:29 am »
I think AsString will work.
Logged
1HuntnMan
Sr. Member
Posts: 323
From Delphi 7 to Lazarus
Re: Load a Dbf Memo field from one table to another table Dbf Memo field
«
Reply #3 on:
May 27, 2024, 05:49:23 pm »
Thanks, just couldn't find it in my downloaded docs. I'm adding this to my docs.
I'm going to test both .Value and .String
1HuntnMan
Logged
1HuntnMan
Sr. Member
Posts: 323
From Delphi 7 to Lazarus
Re: Load a Dbf Memo field from one table to another table Dbf Memo field
«
Reply #4 on:
May 27, 2024, 07:23:24 pm »
If you key in:
Code: Pascal
[Select]
[+]
[-]
DbfAppmts
.
FieldByName
(
'DIRECTIONS'
)
.
Value
:
=
DbfClient
.
FieldByName
(
'TRAVELDIRECTIONS'
)
.
Value
;
Laz will allow when you key . then lookup Value:variant but won't allow .String.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Databases
»
Load a Dbf Memo field from one table to another table Dbf Memo field
TinyPortal
© 2005-2018