|
From: Henning on 27 Jun 2008 10:30 "Bert Nelsen" <bert.nelsen(a)googlemail.com> skrev i meddelandet news:eHGfbrF2IHA.3884(a)TK2MSFTNGP05.phx.gbl... > Hello, > I am parsing a file format that I don't know and I haven't been able to > find the logic between input and output in this scheme. > If anybody has a brain like the guy in "A Beautiful Mind", please let me > know. > Bert > ---------------------- > Input: > 1-- > -2- > 3-- > Output: "2,3,1" > ---------------------- > Input: > 1-- > 2-- > 3-- > Output: "3,2,1" > ---------------------- > Input: > 1-- > 2-- > -3- > Output: "2,2,2" > ---------------------- > Input: > 1-- > -2- > --3 > Output: "1,3,2" > ---------------------- > Input: > 1-- > -2- > -3- > Output: "1,4,1" > ---------------------- > ps: All 5 schemes are independ from each other. They are from different > files. But they all follow the same logic. Weird, input of 1,-2,3 give different output!? There must be something else involved. /Henning
From: dpb on 27 Jun 2008 10:40 Henning wrote: .... > Weird, input of 1,-2,3 give different output!? There must be something else > involved. Obviously. I don't think -2- means "negative 2" but that the input is positional as well as the numeric value. That is, in -2- both the leading and trailing "-" are significant. Something of the context _might_ be of help here... :) --
From: Bert Nelsen on 27 Jun 2008 10:49 The "-" are placeholders... Maybe I should have written "[][]2" or something like that.
From: Bert Nelsen on 27 Jun 2008 10:51 The numerics have a horizontal position. 1-- means that the 1 is in the first of three available positions. -1- means that the 1 is on the 2nd position. --1 means that the 1 is on the 3rd position.
From: Bert Nelsen on 27 Jun 2008 10:55 The values come from a listbox whose values you can move around with 4 arrows: Up, Down, Left, Right For example you have ---------------------- Group 1 -Group 2 Group 3 which would return in the following "output": 1-- -2- 3-- ---------------------- Group 1 -Group 2 --Group 3 would be 1-- -2- --3 ------------------------ These values are stored in the format I mentioned (see "output"), but this output doesn't follow any rule I could recognize.
|
Next
|
Last
Pages: 1 2 Prev: insert an Excel graph into a Richtextbox? Next: Remove an Entry from Available References |