Autor: rob willis Link zum Beitrag: [27130.foren.mysnip.de] Don For what its worth, I had the same dark days initially with Wxdev. I did Clarion in the 90's and then Powerbuilder, etc. So when I purchased Wxdev for my projects it was a risky investment to make it work. I'm a DBA by trade so moving data in and out was paramount to my accepting this product. If youby harvey68 - WinDev Forum
Autor: rob willis Link zum Beitrag: [27130.foren.mysnip.de] Can't agree more with Don/Arie. IF NOT HADD(MyTableName) then info(Herrorinfo()) end Things that can go wrong are a primary key constrainst, or in your example your the length of email or password exceeds the column definition. for example if you made email a varchar(20) and tried to stick 21+ chars into it.by harvey68 - WinDev Forum
Autor: Don Schwirtlich Link zum Beitrag: [27130.foren.mysnip.de] Many thanks Darren, Arie, adding the Error(ErrorInfo()) told me everything. There was an issue in the cardinalities (sp?) between the keys in the link between two of my files. For testing, i removed the link - reran the register piece, and data is there. Now to go see what my error was in the dictionary. Fixing one mby harvey68 - WinDev Forum
Autor: Don Schwirtlich Link zum Beitrag: [27130.foren.mysnip.de] I have done the tutorial - and my adds went great - viewed the file , checked out the records I added , no problem. The difference that I can tell , which surely isnt the one biting me here - is that instead of doing the screentofile, doing the moving of values from edit controls. But I did change that to screentofile -by harvey68 - WinDev Forum
Autor: DarrenF Link zum Beitrag: [27130.foren.mysnip.de] Don, Based on some of your previous posts I'm not sure if you've given up on the WB tutorial? There's a section in there showing you how to manage HAdd's etc... along with using the ScreenToFile function for moving values from edit controls to the file buffer before issuing the HAdd thus saving lots of coby harvey68 - WinDev Forum
Autor: Arie Link zum Beitrag: [27130.foren.mysnip.de] Don, I don't see anything worng with that. Which type of database do you use and how do you setup a connection to it? You can, during desingtime, define a connection in the analysis. But most of the time at runtime your database sits somewhere else. Then you need to define a connection and link that to your tables (filesby harvey68 - WinDev Forum
Autor: Don Schwirtlich Link zum Beitrag: [27130.foren.mysnip.de] How could I screw up something this simple... what can you see that i am doing wrong, HReset(Logins) Logins.EMAIL = EDT_EMAIL Logins.Password = EDT_Password HAdd(Logins) Other than an autoID Logins.LoginsID - that is all in this data file of this analby harvey68 - WinDev Forum
Autor: Don Schwirtlich Link zum Beitrag: [27130.foren.mysnip.de] Thanks Rob Willis Best regards, Don Schwirtlichby harvey68 - WinDev Forum
Autor: rob willis Link zum Beitrag: [27130.foren.mysnip.de] So I am a SQL guy thus provided your analysis has been configured. Hreset(mytablename) // clears the record Mytablename.LastName = "Willis" Mytablename.FirstName = "Robert" Mytablename.Userid = "rwillis@blackwrist.com" Hadd(mytablename) Now the thing I learned late was this next part. mby harvey68 - WinDev Forum
Autor: Don Schwirtlich Link zum Beitrag: [27130.foren.mysnip.de] Can someone point me to a tutorial or example of data being added to a file - the pcsoft version of my previous life (clarion) - would be File1.Field1 = 'Stuff' File1.Field2 = ' more stuff'' File1.field3 = 'even more stuff' Access.File1.Insert() And I know HAdd(File1) - would comby harvey68 - WinDev Forum
Autor: GuenterP Link zum Beitrag: [27130.foren.mysnip.de] Hi Arie, thank you, exactly did the trick!by harvey68 - WinDev Forum
Autor: Arie Link zum Beitrag: [27130.foren.mysnip.de] Alexander, try putting your declaration global and not in the window tim_terminal is SIX.TimApi.Terminal dynamic tim_terminal = new "SIX.TimApi.Terminal" And skip the 'delete' Maybe not what we've learned in our OOP lessons but if it works, it works...by harvey68 - WinDev Forum
Autor: Alexander Predl Link zum Beitrag: [27130.foren.mysnip.de] Hi, I need a little help with a .NET assembly. The .NET assembly works well for the first time. On the second call, I cannot get a connection to the terminal. What do I wrong? My code: (code very short, only to demostrate the problem) tim_terminal is SIX.TimApi.Terminal dynamic tim_terminal = new "SIX.TimApi.Tby harvey68 - WinDev Forum
Autor: Ola Link zum Beitrag: [27130.foren.mysnip.de] Hi again, I found a solution (or part of it): obviously the strings must be modified in the validate button by the TextToHtml function before saving. That will change the extended ascii characters to their "entity" formats, (eg. ä = ä which should work in html text regardless of platform. And then again with HtmlTby harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] ROFL! Thanks DW and Piet - I had no idea about those settings. Too many IDEs and languages for my me. The boarders thing did the trick. Cheers Andréby harvey68 - WinDev Forum
Autor: Piet van Zanten Link zum Beitrag: [27130.foren.mysnip.de] Hi André, DW got it nailed. I misinterpreted "empty strings" to be attributes with no control attached. I have show borders always on, so I could not imagine that you could not see these controls. Kind regards, Pietby harvey68 - WinDev Forum
Autor: DW Link zum Beitrag: [27130.foren.mysnip.de] Andre, What if you went to the display tab on the menu bar and turned on "Surface of Controls" or "Boarders" under the "Show (all the controls)" section. DWby harvey68 - WinDev Forum
Autor: Piet van Zanten Link zum Beitrag: [27130.foren.mysnip.de] Hi André, O, I see, but these are just attributes of the looper. They are not called controls and cannot be assigned to a plane. So you got answers to a completely different issue. Kind regards, Piet.by harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Sorted. In WX23 you have TextToHTML In WX22 that I am currently using the following did the trick: MyString = Replace(MyString,CRLF,"") Cheers Andréby harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Hi All I am displaying some string content in an html control in iOS and Android. I need to make the contents of this string display with "line feeds". So I guess I need to change the line feeds in the string to before including it in the html control. Is there a function to do that or should I just do aby harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Howdy Thanks Peter - understood. Thanks Fabrice - understood - you will notice that I have an attribute linked to the color property of the control but was addressing it incorrectly as per Peter's post. Still learning here - phew - so much to still understand. Cheers Andréby harvey68 - WinDev Forum
Autor: Fabrice Harari Link zum Beitrag: [27130.foren.mysnip.de] Hi André, to complete Peter's message An attribute is NOT a control where you can use properties. An attribute is linked to ONE SPECIFIC property of a control. So you need ot create an attribute linked to the color Best regardsby harvey68 - WinDev Forum
Autor: Peter Muckle Link zum Beitrag: [27130.foren.mysnip.de] Hi, IF LOOP_MyLooper.ATT_MyStatus..Value = "MyCondition" THEN LOOP_MyLooper.ATT_MyStatusColor..Color = DarkGreen END Should this be IF LOOP_MyLooper.ATT_MyStatus..Value = "MyCondition" THEN LOOP_MyLooper.ATT_MyStatusColor..Color = DarkGreen ENDby harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Hi All I am needing to change the colour of a control in a looper based on a condition. Here is the code I have tried: TheMax is int = LOOP_MyLooper..Occurrence FOR Rec = 1 TO TheMax IF LOOP_MyLooper.ATT_MyStatus..Value = "MyCondition" THEN LOOP_MyLooper.ATT_MyStatusColor..Color = DarkGreen ENDby harvey68 - WinDev Forum
Autor: Sammy Broeders Link zum Beitrag: [27130.foren.mysnip.de] Sorry your right, i mean DW`s solution.by harvey68 - WinDev Forum
Autor: Art Bonds Link zum Beitrag: [27130.foren.mysnip.de] I absolutely LOVE deadlines! They make such a nice whooshing noise as they pass by! :xcool:by harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Hi Fabrice Thanks for that. I had actually found the error in the code - I had messed up the counter. Lots of late and full nights of coding going on here - chasing a deadline.... Cheers Andréby harvey68 - WinDev Forum
Autor: Fabrice Harari Link zum Beitrag: [27130.foren.mysnip.de] Hi André it depends on the type of looper... For a looper filed by programming (ie not linked to a file or query), you can use the selection code area to do something like this: For iIndex=1 to loopercount(mylooper) ATT_Checkbox = false end att_checkbox=true best regardsby harvey68 - WinDev Forum
Autor: André Labuschagné Link zum Beitrag: [27130.foren.mysnip.de] Hi All I have a check box in a looper. On row selection I want to assign the check box as selected AND deselect the check box in all other rows in the looper. Tried a few tricks with no positive results. Any ideas? Cheers Andréby harvey68 - WinDev Forum
Autor: Art Bonds Link zum Beitrag: [27130.foren.mysnip.de] Thanks JP!by harvey68 - WinDev Forum