locked
GUID help RRS feed

  • Question

  • Hi 

     

    I am developing my first MS Light Switch application and I need help configuring a GUID! When assigning an employee to a PAF I want a unique PAF ID to automatically generate when creating tje paf for user... please help.

     

    Thanks

     

    Kevin

    Namespace LightSwitchApplication
    
      Public Class PAF
    
        Dim rowguid As Object
    
        Private Sub PafNo_Compute(ByRef result As Integer)
          ' Set result to the desired field value
    
        End Sub
    
        Private Sub PafNo_Validate(results As EntityValidationResultsBuilder)
          ' results.AddPropertyError("<Error-Message>")
    
    
    
        End Sub
    
        Public Shared Function NewGuid() As Guid
          'Usage
    
          Dim returnValue As Guid
    
          returnValue = Guid.NewGuid()
        End Function
      End Class
    
    End Namespace
    

    Monday, July 25, 2011 5:05 AM

Answers

  • Hi Kevin,

    The GUID data type wasn't supported in Beta 2. Please wait until Tuesday for the official release - you may be pleasnatly surprised ;-)

    Regards,


    Steve Hoag Microsoft aka the V-Bee
    Monday, July 25, 2011 6:17 AM
    Moderator

All replies

  • Hi Kevin,

    The GUID data type wasn't supported in Beta 2. Please wait until Tuesday for the official release - you may be pleasnatly surprised ;-)

    Regards,


    Steve Hoag Microsoft aka the V-Bee
    Monday, July 25, 2011 6:17 AM
    Moderator
  • Hi Yann,

     

    Thanks for the swift response. I need to create a unique identifier for this project -  looking something like 'P0001' - 'PXXXX' can you assist or do I have to wait till tuesday!! may I ask?

     

    Thanks

    Really enjoying the light Switch stuff by the way! I am more design orientated so this GUI is very neat.

    Kevin

    Tuesday, July 26, 2011 12:16 AM