Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » How to view that U++ generated from *.lay and *.sch files
How to view that U++ generated from *.lay and *.sch files [message #46010] Tue, 16 February 2016 21:52 Go to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello, all!


Darkness. I use *.lay and *.sch files follow examples. But there U++ generates is unclear. How is it see?

In the example SetLayout are functions SetLayout_Layout1 and SetLayout_Layout1 not in the code. This generated function. How to view all U++ generates?

Regularly *.lay the file spoils Russian strings in utf-8 . It's not even funny. At any moment the work may disappear . Is it possible to restore the correct Russian text in the file *.lay ?

For example HomeBudget.sch :

TABLE_(DATES)
INT_ (ID) PRIMARY_KEY
DATE_ (DT)
END_TABLE

TABLE_(GROUPS)
INT (ID) PRIMARY_KEY
STRING_ (NAME, 500)
END_TABLE

TABLE_(CATEGORIES)
INT (ID) PRIMARY_KEY
INT_ (GR_ID) INDEX
STRING (NAME, 500)
DOUBLE_ (DEFVALUE)
INT_ (PM)
INT_ (INNEWMONTH)
END_TABLE

TABLE_(MONEY)
INT (ID) PRIMARY_KEY
INT_ (DT_ID) INDEX
INT_ (CAT_ID) INDEX
INT (PM)
DOUBLE_ (VALUE)
DATE (DT)
STRING_ (DESC, 1024)
END_TABLE


In the program freely for repeated uses different tables variables ID and NAME. They are of type SqlId . And what happens if the different tables have fields with the same name but different data types? What is the use then from the file *.sch ?

For example add this in HomeBudget.sch

TABLE_(MY_TABLE)
STRING_ (ID, 40)
INT_ (NAME)
END_TABLE

Thanks.

With best regards Navadvipa Chandra das.
Re: How to view that U++ generated from *.lay and *.sch files [message #46011 is a reply to message #46010] Wed, 17 February 2016 03:50 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Try to check result of file preprocessing (Alt+F7).
Have you set encoding of your source file to utf-8?


Regards,
Novo
Re: How to view that U++ generated from *.lay and *.sch files [message #46012 is a reply to message #46011] Thu, 18 February 2016 14:27 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Sergey and all!

Thank you Servey for answer!
With Alt+F7 a lot more fun!

in TheIDE window caption - ... .lay UTF-8 CRLF] {MyApps}

It was so:
ITEM(Label, laPassword, SetLabel(t_("Пароль")).HCenterPosZ(44, 146).TopPosZ(56, 19))
Becomes so:
ITEM(Label, laPassword, SetLabel(t_("Пароль")).HCenterPosZ(44, 146).TopPosZ(56, 19))

Where set encoding in source file utf-8 I dont know.

With best regards Navadvipa Chandra das.
Re: How to view that U++ generated from *.lay and *.sch files [message #46016 is a reply to message #46012] Thu, 18 February 2016 20:08 Go to previous messageGo to next message
Navadvipa Chandra das is currently offline  Navadvipa Chandra das
Messages: 34
Registered: January 2016
Location: DPR, Donetsk region, Chay...
Member

Hello Sergey and all!

I found in the Package Organizer item Encoding for my project. I changed the value from Default to UTF-8 ! Yay! Hope will help!

With best regards Navadvipa Chandra das.
Re: How to view that U++ generated from *.lay and *.sch files [message #46019 is a reply to message #46016] Fri, 19 February 2016 04:32 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Navadvipa Chandra das wrote on Thu, 18 February 2016 14:08

I found in the Package Organizer item Encoding for my project. I changed the value from Default to UTF-8 ! Yay! Hope will help!

Upp is full of magic. Smile


Regards,
Novo
Previous Topic: Linker warnings ... skipping incompatible ...
Next Topic: How does TheIDE instant update Settings dialog work?
Goto Forum:
  


Current Time: Sat Apr 20 14:22:08 CEST 2024

Total time taken to generate the page: 0.92812 seconds