IT PAT Tips and Hints | Display images from a database

  Рет қаралды 6,887

Mr Long Education - IT & CAT

Mr Long Education - IT & CAT

Күн бұрын

Пікірлер: 17
@unzenzer01
@unzenzer01 3 жыл бұрын
I'm starting to learn "delphi" and figured out how to do this, thanks.
@unzenzer01
@unzenzer01 3 жыл бұрын
I need a solution to the error "access viotion at address 5059DCDD in module 'vcl210.vpl' Read of address 000000
@andykoala3010
@andykoala3010 2 жыл бұрын
Very helpful but is there a demo on how you would create a new record and add an image? It is possible for delphi to save the image in the designated directory as part of that?
@shiluvangobeni9178
@shiluvangobeni9178 Жыл бұрын
Hi Sir I'm getting an error saying unknown picture extension (.jpg").
@YounginDonnie
@YounginDonnie Жыл бұрын
I need help with IT practical I need to make a game based on the board game battleship, my interface is but i can't figure out how the coordinates should work. Can you help me?
@andykoala3010
@andykoala3010 2 жыл бұрын
I have followed this but am constantly getting an E2149 error - Class does not have a default property with the red squiggle under the opening square bracket right after the DBGrid - am i missing a variable declaration?
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
Can you post some of the code here?
@andykoala3010
@andykoala3010 2 жыл бұрын
@@MrLongITandCAT uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, jpeg, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.Phys.SQLite, FireDAC.Phys.SQLiteDef, FireDAC.Stan.ExprFuncs, FireDAC.Phys.SQLiteWrapper.Stat, FireDAC.VCLUI.Wait, Data.DB, FireDAC.Comp.Client, FireDAC.Stan.Param, FireDAC.DatS, FireDAC.DApt.Intf, FireDAC.DApt, FireDAC.Comp.DataSet, Vcl.Grids, Vcl.DBGrids, Vcl.ExtCtrls, Vcl.ExtDlgs, Vcl.StdCtrls, Vcl.DBCtrls; type TForm3 = class(TForm) FDConnection1: TFDConnection; DBGrid1: TDBGrid; DataSource1: TDataSource; FDQuery1: TFDQuery; Image1: TImage; FDTableAdapter1: TFDTableAdapter; procedure DBGrid1CellClick(Column: TColumn); private { Private declarations } public { Public declarations } end; var Form3: TForm3; implementation {$R *.dfm} procedure TForm3.DBGrid1CellClick(Column: TColumn); begin Image1.Picture.LoadFromFile (GetCurrentDir + DBGrid1 ['AssetIMFile']); end; end. I have the images in the same folder as the delphi files. Its an SQlite table rather than an ADO one which was used in your demo
@andykoala3010
@andykoala3010 2 жыл бұрын
The other thing i would add is that from Sqlite RAD Studio identified the field as widememo so i have used the cast as text command to pull the field name in as text
@MrLongITandCAT
@MrLongITandCAT 2 жыл бұрын
@@andykoala3010 Did this fix your problem?
@andykoala3010
@andykoala3010 2 жыл бұрын
@@MrLongITandCAT sorry not sure what the fix is?
@unzenzer01
@unzenzer01 3 жыл бұрын
var file_pics : string ; begin file_pics:= ; picture1.loadfromfile(file_pics) ; end; // but file not found in folder path , What conditions do I need?
@unzenzer01
@unzenzer01 3 жыл бұрын
Show reports only items that contain images in the folder path. The data in the report is incomplete.
@MrLongITandCAT
@MrLongITandCAT 3 жыл бұрын
Do you have the images in the same folder as the Delphi files?
@bokangmadondo2640
@bokangmadondo2640 2 жыл бұрын
I'm also having the same error..Please help!
IT PAT Tips and Hints | Creating a log text file
13:29
Mr Long Education - IT & CAT
Рет қаралды 6 М.
IT PAT Tips and Hints | Phase 1 | Ideas on creating your PAT database
18:21
Mr Long Education - IT & CAT
Рет қаралды 15 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 44 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 3,2 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 1,6 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
IT PAT Tips and Hints | Adding an object to your PAT
13:12
Mr Long Education - IT & CAT
Рет қаралды 6 М.
Databases in Delphi - Connecting to a database using code
19:32
Mr Long Education - IT & CAT
Рет қаралды 28 М.
IT PAT Tips and Hints | Phase 1 | IPO Table
26:10
Mr Long Education - IT & CAT
Рет қаралды 16 М.
IT PAT Tips and Hints | Phase 1 | Getting Started
20:22
Mr Long Education - IT & CAT
Рет қаралды 27 М.
IT PAT Tips and Hints | Login Screen
15:02
Mr Long Education - IT & CAT
Рет қаралды 37 М.
IT PAT Tips and Hints | Admin Screen to Edit or Delete a DB Record
18:52
Mr Long Education - IT & CAT
Рет қаралды 4,7 М.
IT PAT Tips and Hints | Using TChart to graph data
22:55
Mr Long Education - IT & CAT
Рет қаралды 4,4 М.
Databases in Delphi - Connecting and Data Modules
13:31
Mr Long Education - IT & CAT
Рет қаралды 122 М.
IT PAT Tips and Hints | Admin Screen to Insert a DB Record
12:40
Mr Long Education - IT & CAT
Рет қаралды 6 М.
IT PAT Tips and Hints | Phase 1 | Data Structures and User Interface
20:48
Mr Long Education - IT & CAT
Рет қаралды 13 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 44 МЛН