Skip to content

Commit ec825e4

Browse files
authored
Merge pull request #41 from Irwin1985/version_9
Preserve cursor character fields size
2 parents ee5525f + ee2250e commit ec825e4

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

jsonfox.app

229 Bytes
Binary file not shown.

src/cursortoarray.prg

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ define class CursorToArray as session
3737
lcValue = evaluate(.CurName + "." + aColumns[i, 1])
3838
if vartype(lcValue) = 'X'
3939
lcValue = "null"
40-
lcOutput = lcOutput + alltrim(lcValue)
40+
lcOutput = lcOutput + lcValue
4141
else
4242
do case
4343
case aColumns[i, 2] $ "CDTBGMQVW"
@@ -54,10 +54,16 @@ define class CursorToArray as session
5454
else
5555
lcValue = 'null'
5656
endif
57-
otherwise
58-
lcValue = JSONUtils.GetString(alltrim(lcValue))
57+
Otherwise
58+
&& IRODG 08/08/2023 Inicio
59+
*lcValue = JSONUtils.GetString(alltrim(lcValue))
60+
lcValue = JSONUtils.GetString(lcValue)
61+
&& IRODG 08/08/2023 Fin
5962
endcase
60-
lcOutput = lcOutput + alltrim(lcValue)
63+
&& IRODG 08/08/2023 Inicio
64+
*lcOutput = lcOutput + alltrim(lcValue)
65+
lcOutput = lcOutput + lcValue
66+
&& IRODG 08/08/2023 Fin
6167
case aColumns[i, 2] $ "YFIN"
6268
lcOutput = lcOutput + transform(lcValue)
6369
case aColumns[i, 2] = "L"

src/jsonclass.prg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ define class JSONClass as session
44
LastErrorText = ""
55
lError = .f.
66
lShowErrors = .t.
7-
version = "9.7"
7+
version = "9.8"
88
hidden lInternal
99
hidden lTablePrompt
1010
Dimension aCustomArray[1]

0 commit comments

Comments
 (0)