delphi-xe8

Delphi Rest.JSON JsonToObject only works with f variables

℡╲_俬逩灬. 提交于 2019-11-30 04:06:17
问题 I'm using Delphi XE8. I was just looking at the REST.Json ObjectToJsonString() and JsonToObject() calls. Mainly attempting to do something like this: How to convert an object to JSON and back with a single line of code I noticed that I could only get variables to work when they started with an F character. I couldn't find any documentation on this. Is this expected behavior? Should I be naming all variables inside of my classes with an F at the start? If Yes, can someone explain why? I

Delphi: How to Get All Images From Server Database by using App tethering?

有些话、适合烂在心里 提交于 2019-11-29 18:21:37
Hi, EveryBody! I've Client and Server . I'm using Delphi-xe8. App ->Multi-Device Application Both Client and Server are using App tethering, SQLite Database. When Server adding image to database, it's perfectly adding, but In a Client side when Client click "Get Image List" button . Client Recieve only one image [I want All images]. 1. Quation: How to get All images from Server Database to Client Database. by using App tethering[SendStream]? I think Problem with AResource.Value.AsStream need to Splite, How...??? 2. Quation: How to copy all Images From Server Database and save on Client Created

How to Get Images From Server using App Tethering

不打扰是莪最后的温柔 提交于 2019-11-29 17:32:51
I've 2 Apps Let's call Server And Client. I'm using Delphi-xe8. App ->Multi-Device Application In Both Side using: App tethering[tManager,tAProfile], SQLite Database. In Server SQLite Database I've 6 images. I would like to View that images In Client Side. In Client Side I've 6 [TImage]. When I Click Button 'Get Image List' I'm getting 6 images with the same view. I would like 6 images view differently.->[Get From Server Database] Client "Get Image List" button Code: procedure TForm1.GetImgLstClick(Sender: TObject); begin tAProfile.SendString(tManager.RemoteProfiles.First,'GetImages',''); end;

How to use Pipeline pattern in Delphi

左心房为你撑大大i 提交于 2019-11-29 13:04:08
I am trying to implement a Pipeline pattern in my test project ( How to make a Mutlithreded idhttp calls to do work on a StringList ), but am having a struggle adapting TThread code to Pipeline pattern code. There are not many resources about how to use it. I tried my best below, please DO NOT downvote, I know my code is messy but I'll edit my question if needed. type TForm2 = class(TForm) ... private procedure Retriever(const input: TOmniValue; var output: TOmniValue); procedure Inserter(const input, output: IOmniBlockingCollection); function HttpGet(url: string; var page: string): boolean;

Best strategy for too many Elements in FireMoneky TListView Item [duplicate]

人走茶凉 提交于 2019-11-29 08:55:10
This question already has an answer here: Create a customized Item Appearance for ListView Delphi XE7 1 answer Believe me I did my homework before reaching out for help. I spent last 3 days searching and reading but I couldn't come to a solution. So any help will be highly appreciated. My task is to have a ListView connected to a Dataset where the ListView Item is of the following structure: Bear in mind that Elements 4, 6, & 8 are of fixed values & Color (i.e. labels) Colors of Elements 1 & 10 depends on values of Elements 5, 7, & 9 Best what I got is references to Delphi Standard Example

Delphi: How to Get All Images From Server Database by using App tethering?

若如初见. 提交于 2019-11-28 13:59:45
问题 Hi, EveryBody! I've Client and Server . I'm using Delphi-xe8. App ->Multi-Device Application Both Client and Server are using App tethering, SQLite Database. When Server adding image to database, it's perfectly adding, but In a Client side when Client click "Get Image List" button . Client Recieve only one image [I want All images]. 1. Quation: How to get All images from Server Database to Client Database. by using App tethering[SendStream]? I think Problem with AResource.Value.AsStream need