Page 1 of 1

App Developer Advanced String Functions and Text[2]

Posted: Wed Feb 08, 2023 2:11 pm
by stefan.erni
Hi Ben

There is a nice new component: Advanced String Functions and the "old" Text[2d].

both together can display a lot of data easily and quickly. Convert entire integer array at once. Excellent.

A little problem with the font with the siz of "-" or " " space in the Text[2d].

So in the Display the number are jumping around what is not so nice to see.

Is there a font with proportional size or a way to set it?

regards


Stefan


In the text[2D] there are a lot of fonts but I did not found a perfect one

the negativ integer use different space than positive numbers
Snag_5512a0.png
Snag_5512a0.png (7.95 KiB) Viewed 929 times
or space is much smaller then the number
Snag_55f1e4.png
Snag_55f1e4.png (7.59 KiB) Viewed 929 times
Snag_5a0ab8.png
Snag_5a0ab8.png (4.33 KiB) Viewed 929 times

Re: App Developer Advanced String Functions and Text[2]

Posted: Wed Feb 08, 2023 2:51 pm
by Steve-Matrix
I think the easiest way is to use a fixed-width font like "Courier New". There could be others, e.g. "Comic Sans" and "Lucida Sans Typewriter".

Re: App Developer Advanced String Functions and Text[2]

Posted: Wed Feb 08, 2023 3:49 pm
by stefan.erni
Hi Steve

Thanks a lot. Yes "Courier New" and "Lucida Sans Typewriter" Font works perfect in the Text[2D].

regards

Stefan

Snag_ba41d2.png
Snag_ba41d2.png (47.48 KiB) Viewed 922 times

Re: App Developer Advanced String Functions and Text[2]

Posted: Fri Feb 10, 2023 8:20 am
by stefan.erni
Hi Ben

There is a simple way to save many integer data arrays to an excel file quickly and easily with the App Developer and the Component" Advanced String Functions". Maybe you could add a parameter "end with new line". But in the menue the answer is only yes or no. If yes then you add "\r\n".
to the string.

I don't know if the string length is necessary, I just did it
here the program:
FC10_string_test_csv.fcsx
(13.69 KiB) Downloaded 51 times

In this way you can also write a data file, then simply remove the conversion and write the data array into the file and change the extension from .csv to .mfc, for example



regards

Stefan

Add "End with new line" ...
Snag_3ec16e.png
Snag_3ec16e.png (113.41 KiB) Viewed 892 times
Programm
Snag_401e6d.png
Snag_401e6d.png (62.98 KiB) Viewed 892 times

Part of the Excelfile generate with the program:
Snag_428d4a.png
Snag_428d4a.png (47.18 KiB) Viewed 892 times