Search found 67 matches
- Thu Sep 17, 2015 10:23 am
- Forum: BlackBox Framework
- Topic: How to read an environment variable
- Replies: 0
- Views: 24460
How to read an environment variable
I wanted to get the value of the environment variable HOMEPATH. I've found that WinApi.GetEnvironmentVariableW provides that. But in order to make it easier, I've written a wrapper function: PROCEDURE EnvVarValue* (IN pName: ARRAY OF CHAR): POINTER TO ARRAY OF CHAR; (* Returns the value of the envir...
- Thu Aug 20, 2015 11:32 am
- Forum: BlackBox Framework
- Topic: Module CommTCP, parameter localAdr
- Replies: 1
- Views: 5493
Module CommTCP, parameter localAdr
I've been looking at exemplary modules CommObxStreamsServer and CommObxStreamsClient , executing them via theirs docu files: (Q) CommObxStreamsServer.Start (Q) CommObxStreamsClient.SendTextSelection But they didn't work. I've only been able to make them work, by changing the constant localAdr , addi...
- Tue Aug 11, 2015 8:19 am
- Forum: Lib
- Topic: Update a plot in LibPlotters
- Replies: 15
- Views: 35597
Re: Update a plot in LibPlotters
I don't know much, but I've heard about subsystem Gr (Data Acquisition and Monitoring Toolbox). It seems to fit your needs. You can download it from http://www.zinnamturm.eu/downloadsDH.htm#Gr See also http://www.pas.rochester.edu/~skulski/Downloads.html http://www.pas.rochester.edu/~skulski/Present...
- Wed Aug 05, 2015 10:54 am
- Forum: Lib
- Topic: Update a plot in LibPlotters
- Replies: 15
- Views: 35597
Re: Update a plot in LibPlotters
I am not sure why I need Services.Action and procedure ProcessMessages , but this example manages to show 5 lines, one at a time: TYPE (* Copied from ObxActions *) Action = POINTER TO RECORD (Services.Action) j: INTEGER END; VAR PLp: Plotters.Plotter; PROCEDURE ProcessMessages; (* Chris Burrows *) V...
- Wed Aug 05, 2015 9:45 am
- Forum: Lib
- Topic: Update a plot in LibPlotters
- Replies: 15
- Views: 35597
Re: Update a plot in LibPlotters
Thanks, I changed pts[0] to pts . Regarding your question, I've noticed: The call to PLp.Update() inside the loop, doesn't seem to do the drawing of a line; instead the whole graphic seems to be updated completely only when the program finished. If you want to draw 2 lines, I think you'll need 2 var...
- Wed Aug 05, 2015 8:00 am
- Forum: Lib
- Topic: Update a plot in LibPlotters
- Replies: 15
- Views: 35597
Re: Update a plot in LibPlotters
I've tried to install subsystem Lib from http://www.zinnamturm.eu, but I've got an error compiling module LibPlot3D: MODULE LibPlot3D; IMPORT Api := WinApi ... ... PROCEDURE (g : SurfGraphic) Restore2 (f : Views.Frame); VAR ... dc, k, res: INTEGER; pts: ARRAY 10 OF Api.POINT; BEGIN ... res := Api.Po...
- Mon Jul 06, 2015 8:02 am
- Forum: BlackBox Framework
- Topic: SqlDB.Table.Read traps in 2 situations
- Replies: 1
- Views: 5570
SqlDB.Table.Read traps in 2 situations
Sql developer manual: SqlDB.Table ... Note that the field table.rows cannot be computed by all database drivers, some may return MAX(INTEGER) instead. To loop over all rows of a result table, it is therefore better to avoid using table.rows in the loop termination condition. Instead, looping can be ...
- Thu Jun 18, 2015 7:37 am
- Forum: BlackBox Framework
- Topic: Problem in module SqlDB with SqlDB.noData
- Replies: 1
- Views: 4699
Re: Problem in module SqlDB with SqlDB.noData
The reason of malfunctioning is in module SQLiteDriver.
Table.ReadVarString is returning the pointer to the array of char where the text data read from database is stored.
Instead, a new array should be allocated, filled in with data, and returned.
Table.ReadVarString is returning the pointer to the array of char where the text data read from database is stored.
Instead, a new array should be allocated, filled in with data, and returned.
- Wed Jun 17, 2015 9:51 am
- Forum: BlackBox Framework
- Topic: Problem in module SqlDB with SqlDB.noData
- Replies: 1
- Views: 4699
Problem in module SqlDB with SqlDB.noData
This problem happens to me with module SQLiteDriver. I don't know if it also occurs with module SqlOdbc. The problem is that when reading a table using this schema: VAR tab*: SqlDB.Table; r: INTEGER; row: SqlDB.Row; .. .. read from database into tab .. r := 0; tab.Read(r, row); WHILE tab.res # SqlDB...
- Tue Jun 16, 2015 7:22 am
- Forum: GUI problems
- Topic: Writing a continuous line inside a text model
- Replies: 1
- Views: 17452
Re: Writing a continuous line inside a text model
I have discovered that instead of
I can use
Code: Select all
fm.WriteView(v);
v.context.SetSize(w, h)
Code: Select all
fm.rider.WriteView(v, w, h)