4gl

Add a new language to Visual Studio 2010 with syntax highlighting and intellisense

冷暖自知 提交于 2020-01-01 00:44:29
问题 I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add is 4Js Genero (a newer version of Informix-4GL). I basically just need support for the .4gl and . per file extensions that are used in Genero/4GL. Does anyone know how to do this, or can point me in the right direction? 回答1: It's not really for the faint of heart. Don't underestimate

Add a new language to Visual Studio 2010 with syntax highlighting and intellisense

走远了吗. 提交于 2020-01-01 00:44:27
问题 I am trying to add support for a different language in Visual Studio 2010. I was hoping to add custom syntax highlighting, and have some sort of basic intellisense work with it. The language I am trying to add is 4Js Genero (a newer version of Informix-4GL). I basically just need support for the .4gl and . per file extensions that are used in Genero/4GL. Does anyone know how to do this, or can point me in the right direction? 回答1: It's not really for the faint of heart. Don't underestimate

Command (.4gl) executed with SSH.NET SshClient.RunCommand fails with “No such file or directory”

吃可爱长大的小学妹 提交于 2019-12-19 04:56:07
问题 I have a web service that uses SSH.NET to call a shell script on a Unix box. If I run the script normally, it works fine, does its work correctly on the Informix DB. Just some background: I call a script that executes a .4gl (cant show this as its business knowledge). The g4l is giving the following error back in a log, when I execute it with SSH.NET: fglgo: error while loading shared libraries: libiffgisql.so: cannot open shared object file: No such file or directory file_load ended: 2017-09

Command (.4gl) executed with SSH.NET SshClient.RunCommand fails with “No such file or directory”

你说的曾经没有我的故事 提交于 2019-12-19 04:56:03
问题 I have a web service that uses SSH.NET to call a shell script on a Unix box. If I run the script normally, it works fine, does its work correctly on the Informix DB. Just some background: I call a script that executes a .4gl (cant show this as its business knowledge). The g4l is giving the following error back in a log, when I execute it with SSH.NET: fglgo: error while loading shared libraries: libiffgisql.so: cannot open shared object file: No such file or directory file_load ended: 2017-09

Type Conversion in Informix 4GL

杀马特。学长 韩版系。学妹 提交于 2019-12-12 18:26:59
问题 I want to convert a variable of type VARCHAR to INTEGER and vice versa (i.e. from INTEGER type to VARCHAR ) in Informix 4GL. 回答1: DEFINE v VARCHAR(20) DEFINE i INTEGER LET v = "12345" LET i = v DISPLAY "i = ", i, "; v = ", v LET i = 123456 LET v = i DISPLAY "i = ", i, "; v = ", v Easy, huh? You run into problems if the string can't be converted to a number (run time errors, etc). In essence, I4GL will automatically convert between types if it is possible, only generating an error if it is

Positioning a 4GL window in center

Deadly 提交于 2019-12-11 20:19:27
问题 I'm having multiple windows throughout my 4gl program where I have to position to the center of the screen. For example: OPEN WINDOW w_yesno AT 10, 10 WITH 4 ROWS, 56 COLUMNS ATTRIBUTE (BORDER, MESSAGE LINE FIRST+1, PROMPT LINE FIRST+2) Is there any keyword I can use to automatically open it in the center? Something like: OPEN WINDOW w_yesno AT CENTER 回答1: No, there isn't a keyword solution to centring windows. You can use variables for the positions and do the calculation, or you can do the

How to convert A0058 value to 9958 in progress 4gl [duplicate]

走远了吗. 提交于 2019-12-11 17:18:53
问题 This question already has answers here : How to convert A00073 value to 9973 in progress 4gl (5 answers) Closed 2 years ago . i have column having multiple value like A0045 ,A00065 . i want to convert it 9945, 9965. Need to remove all 0 and character value and add 99 before that value.. replace(val,"A","99") will replace only A I want to go for A-Z occurrence.. Any char should be convert .. Please help 回答1: How about newValue = "99" + LEFT-TRIM( oldValue, "ABCDEFGHIJKLMNOPQRSTUVWXYZ0" ). This

How to convert A00073 value to 9973 in progress 4gl

十年热恋 提交于 2019-12-04 05:41:50
问题 i have column having multiple value like A0045 ,A00065 . i want to convert it 9945, 9965. Need to remove all 0 and character value and add 99 before that value.. Please help.. 回答1: This can be done in many ways. Here is one way (may not be the best). As I don't have a database, I created a temp table. def temp-table tt field val as char. create tt. tt.val = "A0045". create tt. tt.val = "A00065". for each tt: run filter_zero(input-output val). val = replace(val,"A","99"). DISP val. end.

Command (.4gl) executed with SSH.NET SshClient.RunCommand fails with “No such file or directory”

血红的双手。 提交于 2019-12-01 02:19:40
I have a web service that uses SSH.NET to call a shell script on a Unix box. If I run the script normally, it works fine, does its work correctly on the Informix DB. Just some background: I call a script that executes a .4gl (cant show this as its business knowledge). The g4l is giving the following error back in a log, when I execute it with SSH.NET: fglgo: error while loading shared libraries: libiffgisql.so: cannot open shared object file: No such file or directory file_load ended: 2017-09-21 15:37:01 C# code to execute SSH.NET script sshclients = new SshClient(p, 22, username, password);