mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 07:09:27 +02:00
* Correctly convert string param to bytes
git-svn-id: trunk@39342 -
This commit is contained in:
parent
8774d22b01
commit
5de8f0cf69
@ -534,6 +534,8 @@ begin
|
|||||||
Result:=nil
|
Result:=nil
|
||||||
else if VarIsArray(FValue) then
|
else if VarIsArray(FValue) then
|
||||||
Result:=FValue
|
Result:=FValue
|
||||||
|
else if VarIsStr(FValue) then
|
||||||
|
Result:=BytesOf(VarToStr(FValue))
|
||||||
else
|
else
|
||||||
// todo: conversion from other variant types to TBytes
|
// todo: conversion from other variant types to TBytes
|
||||||
Result:=FValue;
|
Result:=FValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user