B4J Question Reading Visual Foxpro DBF MEMO field using JDBC (B4J)

aeric

Expert
Licensed User
Longtime User
You should post in question forum.

Here are what I shared last time:
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Hello, thanks for the answer, I saw your great post, but I didn't find an example to use "cursor.getSting(field_MEMO)" or something like that.

Did you see this code?
B4X:
Dim res As ResultSet = DB.ExecQuery("SELECT * FROM sample")
Do While res.NextRow
    Log($"id: ${res.GetInt("id")} | Name: ${res.GetString("item_name")} | Barcode: ${res.GetInt("barcode")} | Cost: ${res.GetDouble("avg_cost")} | Created: ${res.GetString("created_on")}"$)
    data.Add(Array(res.GetInt("id"), res.GetString("item_name"), res.GetInt("barcode"), res.GetDouble("avg_cost"), res.GetString("created_on")))
Loop
res.Close

Have you tried the project I shared with your own database?
 
Upvote 0

Sergio Barbosa de Souza

Member
Licensed User
Did you see this code?
B4X:
Dim res As ResultSet = DB.ExecQuery("SELECT * FROM sample")
Do While res.NextRow
    Log($"id: ${res.GetInt("id")} | Name: ${res.GetString("item_name")} | Barcode: ${res.GetInt("barcode")} | Cost: ${res.GetDouble("avg_cost")} | Created: ${res.GetString("created_on")}"$)
    data.Add(Array(res.GetInt("id"), res.GetString("item_name"), res.GetInt("barcode"), res.GetDouble("avg_cost"), res.GetString("created_on")))
Loop
res.Close

Have you tried the project I shared with your own database?
Hello, I saw the code but when using Log(res.GetString("MEMO_field")) it comes in blank, I realized that dbf that use MEMO fields recorded in .FPT are difficult to visualize.

Sorry for my english, I use translator.
 
Upvote 0
Top